Hadithcore
Sahih Muslim, 134 b
sahih

This hadith has been transmitted by Mahmud b. Ghailan by another chain of transmitters (and the words are):

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.

وَحَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا أَبُو النَّضْرِ، حَدَّثَنَا أَبُو سَعِيدٍ الْمُؤَدِّبُ، عَنْ هِشَامِ بْنِ عُرْوَةَ، بِهَذَا الإِسْنَادِ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ يَأْتِي الشَّيْطَانُ أَحَدَكُمْ فَيَقُولُ مَنْ خَلَقَ السَّمَاءَ مَنْ خَلَقَ الأَرْضَ فَيَقُولُ اللَّهُ ‏"‏ ‏.‏ ثُمَّ ذَكَرَ بِمِثْلِهِ وَزَادَ ‏"‏ وَرُسُلِهِ ‏"‏ ‏.‏

References2 variants
In-Book Reference
Book 1, Hadith 251
USC-MSA web (English) reference
Book 1, Hadith 243 (deprecated numbering scheme)