صحيح مسلم
Sahih Muslim
كتاب الإيمان
The Book of Faith
باب تَجَاوُزِ اللَّهِ عَنْ حَدِيثِ النَّفْسِ وَالْخَوَاطِرِ بِالْقَلْبِ إِذَا لَمْ تَسْتَقِرَّ
Chapter: Allah allows a person's thoughts and whatever occurs in his heart so long as they do not become established
3 hadith
Hadith 127
It is narrated on the authority of Abu Hurairah (RA) that the Messenger of Allah (ﷺ) 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.
Hadith 127
It is narrated on the authority of Abu Hurairah (RA) that the Messenger of Allah (ﷺ) 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.
Hadith 127
The same hadith has been narrated by Zuhair bin Harb, Waki, Ishaq bin Mansur, Husain bin 'Ali.