The Book of Faith (Kitab Al-Iman)
Muslim :: Book 1 : Hadith 230
It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: Verily Allah forgave my people the evil promptings which arise within their hearts as long as they did not speak about them or did not act upon them.