Sahih Muslim Book 37, Hadith Number 6639.

Chapter : The mercy of Allah predominates his wrath.

Abu Huraira reported Allah’s Messenger (may peace be upon him) as saying that a servant transgressed the limit in committing sins. The rest of the hadith is the same but there is no mention of the story of the cat in it and in the hadith transmitted on the authority of Zubaid (the words are): “Allah, the Exalted and Glorious, said to everything which had taken a part of lies ashes to return what it had taken.”