by Imam Muslim, translation by Abdul Hamid Siddiqui , Volume: The Book of Faith (Kitab Al-Iman)
Chapter: ALLAH DISREGARDS THE PREMONITION OR THE EVIL PROMPTINGS OF THE HEART SO LONG AS THEY DO NOT TAKE A FIRM ROOT
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.
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.
232.
The same hadith has been narrated by Zuhair b. Harb, Waki, Ishaq b. Mansur, Husain b. 'Ali.