كتاب صفة القيامة والجنة والنار
52
Characteristics of the Day of Judgment, Paradise, and Hell
(17)
Chapter: No One Will Enter Paradise By Virtue Of His Deeds, Rather By The Mercy Of Allah, Exalted Is He
(17)
باب لَنْ يَدْخُلَ أَحَدٌ الْجَنَّةَ بِعَمَلِهِ بَلْ بِرَحْمَةِ اللَّهِ تَعَالَى ‏‏

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

There is none amongst you whose deeds alone would attain salvation for him. They (the Companions) said: Allah's Messenger, not even you? He (the Holy Prophet) said: Not even I, but that Allah wraps me in Mercy and He grants me pardon. Ibn 'Aun pointed towards his head with his hand saying: Not even I, but that Allah wraps me in His Forgiveness and Mercy.
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا ابْنُ أَبِي عَدِيٍّ، عَنِ ابْنِ عَوْنٍ، عَنْ مُحَمَّدٍ، عَنْ أَبِي، هُرَيْرَةَ قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ لَيْسَ أَحَدٌ مِنْكُمْ يُنْجِيهِ عَمَلُهُ ‏"‏ ‏.‏ قَالُوا وَلاَ أَنْتَ يَا رَسُولَ اللَّهِ قَالَ ‏"‏ وَلاَ أَنَا إِلاَّ أَنْ يَتَغَمَّدَنِيَ اللَّهُ مِنْهُ بِمَغْفِرَةٍ وَرَحْمَةٍ ‏"‏ ‏.‏ وَقَالَ ابْنُ عَوْنٍ بِيَدِهِ هَكَذَا وَأَشَارَ عَلَى رَأْسِهِ ‏"‏ وَلاَ أَنَا إِلاَّ أَنْ يَتَغَمَّدَنِيَ اللَّهُ مِنْهُ بِمَغْفِرَةٍ وَرَحْمَةٍ ‏"‏ ‏.‏
Reference : Sahih Muslim 2816 d
In-book reference : Book 52, Hadith 67
USC-MSA web (English) reference : Book 39, Hadith 6762
  (deprecated numbering scheme)