Sahih Muslim
The Book of Faith (Kitab Al-Iman)
Book Number: 001 / Hadith Number: 231
It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: Verily the Great and Mighty Allah forgave my people the evil promptings arising in their minds, but they neither talked about them nor acted upon them.