Sahih Muslim 134 b
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.
وَحَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا أَبُو النَّضْرِ، حَدَّثَنَا أَبُو سَعِيدٍ الْمُؤَدِّبُ، عَنْ هِشَامِ بْنِ عُرْوَةَ، بِهَذَا الإِسْنَادِ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ يَأْتِي الشَّيْطَانُ أَحَدَكُمْ فَيَقُولُ مَنْ خَلَقَ السَّمَاءَ مَنْ خَلَقَ الأَرْضَ فَيَقُولُ اللَّهُ ‏"‏ ‏.‏ ثُمَّ ذَكَرَ بِمِثْلِهِ وَزَادَ ‏"‏ وَرُسُلِهِ ‏"‏ ‏.‏