It is narrated from Aisha (may Allah be pleased with her) that the Prophet ﷺ said:
«إن الشيطان يأتي أحدكم فيقول: من خلقك؟ فيقول: الله تبارك وتعالى. فيقول: فمن خلق الله؟ فإذا وجد أحدكم فليقل: آمنت بالله ورسوله فإن ذلك يذهب عنه»
“Indeed, the devil comes to one of you and says: Who created you? He says: Allah, Blessed and Exalted. Then the devil says: Who created Allah? So when you find this, say: I believe in Allah and His Messenger; this (saying) will remove that (state) from him.”
It is narrated from Abu Hurairah (may Allah be pleased with him) that he said that the Messenger of Allah ﷺ said:
«تسألون حتى تقولوا: هذا الله خلقنا فمن خلق الله؟ فقولوا: الله أحد، الله الصمد لم يلد ولم يولد ولم يكن له كفوا أحد»
“You will keep asking one another questions, until you say: This is Allah who created us, so who created Allah? (When it reaches this point) then say: Allah is One, Allah is the Self-Sufficient; He has not begotten, nor was He begotten, and there is none comparable to Him.”
It is narrated from Aisha (may Allah be pleased with her) that she said that the Messenger of Allah ﷺ said:
«إن الشيطان يأتي أحدكم فيقول: من خلقك؟ فيقول: الله، فيقول: من خلق السماوات والأرض؟ فيقول: الله، فيقول: من خلق الله؟ فإذا وجد أحد شيئا من ذلك فليقل: آمنت بالله ورسوله»
“Indeed, the devil comes to one of you and says: Who created you? So he says: Allah. Then the devil says: Who created the heavens and the earth? The person says: Allah. Then he says: Who created Allah? When any of you finds this, let him say: I believe in Allah and His Messenger.”