It is narrated from Sayyiduna Khuzaymah bin Thabit al-Ansari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Satan comes to a person and asks: Who created the heavens? He answers: Allah. Then he asks: Who created the earth? He says: Allah. Until he whispers: Then who created Allah? So when any of you feels such a thing, he should say: 'Amantu billahi wa rasulihi' (I believe in Allah and His Messenger)."
Imam Abu Ya'la al-Mawsili also narrated it with his chain.
I say that the chain of this hadith revolves around Abdullah bin Lahi'ah, and he is a da'if (weak) narrator.
Hadith Takhrij«قلت: هذا الحديث مداره على عبد الله بن لهيعة، وهو ضعيف» «أخرجه مسند أحمد برقم: 21360، وأخرجه المعجم الكبير للطبراني برقم: 3719، وأخرجه المعجم الأوسط للطبراني برقم: 1917، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 81، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 8040»
It is narrated from Zurarah bin Awfa (may Allah have mercy on him) that a man stood up before the Prophet (peace and blessings be upon him) and said: "O Messenger of Allah! Such things (whispers) arise in my breast that if I were to disclose them, I would be ruined; so am I among those who are destroyed?" He (peace and blessings be upon him) said: "No. Indeed Allah, the Mighty and Majestic, has pardoned my Ummah for what occurs in their minds, as long as they do not utter it or act upon it."
It is narrated from Sayyidah Aishah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) said: "Satan comes to one of you and asks: Who created the heavens? He answers: Allah. Then he asks: Who created the earth? He says: Allah. Then he whispers: Then who created Allah? So when such a situation arises, he should say: 'Amantu billahi wa rusulihi' (I believe in Allah and His Messengers)."
Imam Ahmad bin Hanbal (may Allah have mercy on him) narrated it in his Musnad, and Imam Ibn Hibban (may Allah have mercy on him) in his Sahih, through the route of Hisham bin Urwah (may Allah have mercy on him); and this hadith also has a corroborating report (shahid) in the two Sahihs and other books of hadith from the narration of Sayyiduna Abu Hurayrah (may Allah be pleased with him).
It is narrated from Sayyidah Aishah (may Allah be pleased with her) that a man said to her: "One of us finds in his heart such a (whispered) thing that if he were to utter it his Hereafter would be ruined, and if it became known about him he would be killed." Hearing this, Sayyidah (Aishah) (may Allah be pleased with her) said "Allahu Akbar" three times, then said: "The Messenger of Allah (peace and blessings be upon him) was also asked about this, and he (peace and blessings be upon him) also said 'Allahu Akbar' three times and then said: 'Indeed it is only the believer who is tested by this (situation).'"
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Companions said: "O Messenger of Allah (peace and blessings be upon him)! What do you say about this, that one of us finds in his mind such a thing (a whisper) that falling from the sky and being torn to pieces is far dearer to him than uttering it?" The Messenger of Allah (peace and blessings be upon him) said: "That is the sign of pure faith."
Imam Ahmad bin Hanbal narrated something similar in his Musnad through the route of Mu'ammal, Hammad and Thabit (may Allah have mercy on him) from Sayyiduna Anas (may Allah be pleased with him).
Hadith Gradingمحدثین:الطريق الأولى ضعيفة لضعف يزيد الرقاشي، والحديث صحيح بالطريق الثانية
Hadith Takhrij«أخرجه سنن أبي داود برقم: 5112، وأخرجه مسند أحمد برقم: 3151، وأخرجه فتح الباري برقم: 6866، وأخرجه المعجم الكبير للطبراني برقم: 10838، وأخرجه صحيح ابن حبان برقم: 147، 6188، وأخرجه السنن الكبرى للنسائي برقم: 10728، 10729، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 5078، وأخرجه شرح مشكل الآثار برقم: 1636، وأخرجه شرح السنة برقم: 59»
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Companions said: "O Messenger of Allah (peace and blessings be upon him)! When we are with you, our (state of faith and heart) is one way, but when we part from you, that condition does not remain." He (peace and blessings be upon him) asked: "How are you regarding your Prophet (in your faith and belief)?" They said: "You (peace and blessings be upon him) are our Prophet in every state, in secret and in public." He (peace and blessings be upon him) said: "Then this is not hypocrisy."
It is narrated from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) that he said: "O Messenger of Allah! By the One who sent you with the truth, such a thing (a whisper) stirs in my breast that I would (rather than voice it) love to be burned into charcoal." The Messenger of Allah (peace and blessings be upon him) said: "All praise is for Allah; indeed Satan has despaired of ever being worshipped again in this land of yours, but he has become content with the trivial (sins) among your deeds."
Our Shaykh Abu al-Fadl al-Asqalani (may Allah have mercy on him) said that Imam Abu Dawud and Imam al-Nasa'i (may Allah have mercy on them both) narrated it from the hadith of Dharr (may Allah have mercy on him), he from Abdullah bin Shaddad (may Allah have mercy on him), and he from Sayyiduna Ibn Abbas (may Allah be pleased with them both), that "a man said: O Messenger of Allah!" Then he mentioned part of the hadith, and in it there is this addition: "All praise is for Allah, who has reduced his (Satan's) plot to mere whispering." And the first chain is munqati' (broken).
Hadith Takhrij«أخرجه سنن أبي داود برقم: 5112، وأخرجه مسند أحمد برقم: 3151، وأخرجه فتح الباري برقم: 6866، وأخرجه المعجم الكبير للطبراني برقم: 10838، وأخرجه صحيح ابن حبان برقم: 147، 6188، وأخرجه السنن الكبرى للنسائي برقم: 10728، 10729، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 5078، وأخرجه شرح مشكل الآثار برقم: 1636، وأخرجه شرح السنة برقم: 59»