Sahih Muslim Book 39, Hadith Number 6769.
Chapter : None would attain salvation because of his deeds but it is through Lord’s Mercy (that he would attain that).
Jabir reported: I heard Allah’s Apostle (may peace be upon him) as saying: None of you would get into Paradise because of his good deeds alone, and he would not be rescued from Fire, not even I, but because of the Mercy of Allah.