(17) باب لَنْ يَدْخُلَ أَحَدٌ الْجَنَّةَ بِعَمَلِهِ بَلْ بِرَحْمَةِ اللَّهِ تَعَالَى
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
There is none whose deeds alone can'secure salvation for him. They said: Allah's Messenger, not even you? Thereupon he said: Not even I, but that, the Mercy of Allah should take hold of me.
Reference: Sahih Muslim 2816 e
In-book reference: Book 52, Hadith 68
USC-MSA web (English) reference(deprecated numbering scheme): Book 39, Hadith 6763