(17) باب لَنْ يَدْخُلَ أَحَدٌ الْجَنَّةَ بِعَمَلِهِ بَلْ بِرَحْمَةِ اللَّهِ تَعَالَى
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
Observe moderation in deeds (and if it is not possible, try to be near moderation) and understand that none amongst you can attain salvation because of his deeds alone. They said: Allah's Messenger, not even you? Thereupon he said: Not even I, but that Allah should wrap me in His Mercy and Grace.
Reference: Sahih Muslim 2816 g
In-book reference: Book 52, Hadith 70
USC-MSA web (English) reference(deprecated numbering scheme): Book 39, Hadith 6765