Sahih Muslim, Book 50, Hadith 35 (Muslim 6907)

Abu Huraira reported lie heard Allah's Messenger (ﷺ) as saying that a servant committed a sin. The rest of the hadith is the same, but there is a slight variation of wording.