صحیح ابن حبان
Ibn Hibban
كتاب الإيمان
Book of Faith
باب التكليف - ذكر الإباحة للمرء أن يعرض بقلبه شيء من وساوس الشيطان بعد أن يردها من غير اعتقاد القلب على ما وسوس إليه الشيطان-
Chapter: Accountability – Permissibility for one to have passing thoughts from Satan as long as he rejects them
1 hadith
Hadith 147
Abdullah bin Abbas (may Allah be pleased with him) narrates: A man came to the service of the Prophet Muhammad (peace be upon him) and said: "One of us feels something (i.e., a whisper) in his mind, and for him to be turned to ashes would be more beloved than for him to speak about that whisper." So the Prophet Muhammad (peace be upon him) said: "Allahu Akbar! All praise is due to Allah, who has turned this matter back to a mere whisper."