Sahih Muslim, Book 52, Hadith 68 (Muslim 7029)

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.