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»