Sahih Muslim #344 · The Book of Faith

Sahih MuslimThis hadith has been transmitted by Mahmud b. Ghailan by another chain of transmitters
Sahih Muslim · Book 1 · The Book of Faith
Sahih Muslim · كتاب 1 · كتاب الإيمان
The Messenger of Allah (ﷺ) said: The Satan will come to everyone of you and say: Who created the heaven, who created the earth? (And the man) replies: It is Allah, Then the remaining part of the hadith was narrated as mentioned above and the words 'His prophets" were added to it.
وَحَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا أَبُو النَّضْرِ، حَدَّثَنَا أَبُو سَعِيدٍ الْمُؤَدِّبُ، عَنْ هِشَامِ بْنِ عُرْوَةَ، بِهَذَا الإِسْنَادِ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏
"‏ يَأْتِي الشَّيْطَانُ أَحَدَكُمْ فَيَقُولُ مَنْ خَلَقَ السَّمَاءَ مَنْ خَلَقَ الأَرْضَ فَيَقُولُ اللَّهُ ‏"‏ ‏.‏ ثُمَّ ذَكَرَ بِمِثْلِهِ وَزَادَ ‏"‏ وَرُسُلِهِ ‏"‏ ‏.‏
Reference : Sahih Muslim 344In-book reference : Book 1, Hadith 251