The Messenger of Allah ﷺ said, "Satan comes to one of you and asks, 'Who created you?' He answers, 'Allah.' Then Satan asks, 'Who created Allah?' When any of you experiences this, let him say, 'I believe in Allah and His messengers,' for that will drive it away from him."
حدثنا محمد بن إسماعيل قال حدثنا الضحاك عن هشام بن عروة عن أبيه
أن رسول الله ﷺ قال إن أحدكم يأتيه الشيطان فيقول من خلقك فيقول الله فيقول فمن خلق الله فإذا وجد ذلك أحدكم فليقرأ آمنت بالله ورسله فإن ذلك يذهب عنه
Its isnad is sahih. It was previously mentioned. Bazzar narrated it with this wording (1/34, no. 50, Kashf), as did Ibn Hibban (1/362, no. 150, Ihsan). Haythami (1/33) said, "Ahmad, Bazzar, and Abu Yaala narrated it, and its narrators are trustworthy."