Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Satan comes to one of you and asks, 'Who created such-and-such? Who created such-and-such?' until he asks, 'Who created your Lord?' When it reaches that point, let him seek refuge in Allah and stop."In another narration, "Let him say, 'I believe in Allah.'"

Azami 212

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: يأتي الشيطان أحدكم فيقول: من خلق كذا؟ من خلق كذا؟ حتى يقول: من خلق ربك؟ فإذا بلغه فليستعذ بالله ولينته. وفي رواية: فليقل: آمنت بالله.

الأعظمي 212صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
Repelling satanic whispers
Numbering
Jami al-Kamil 212 (2nd edition)
Azami 212