Sahih Muslim Book 37, Hadith Number 6643.
Chapter : Repentance is accepted so long as one repents after committing sins.
Abu Huraira reported lie heard Allah’s Messenger (may peace be upon him) as saying that a servant committed a sin. The rest of the hadith is the same, but there is a slight variation of wording.