كتاب الإيمان
1
The Book of Faith
(60)
Chapter: Clarifying the Waswasah (Whispers, Bad Thoughts) with regard to faith, and what the one who experiences that should say
(60)
باب بَيَانِ الْوَسْوَسَةِ فِي الإِيمَانِ وَمَا يَقُولُهُ مَنْ وَجَدَهَا ‏‏
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.
وَحَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا أَبُو النَّضْرِ، حَدَّثَنَا أَبُو سَعِيدٍ الْمُؤَدِّبُ، عَنْ هِشَامِ بْنِ عُرْوَةَ، بِهَذَا الإِسْنَادِ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ يَأْتِي الشَّيْطَانُ أَحَدَكُمْ فَيَقُولُ مَنْ خَلَقَ السَّمَاءَ مَنْ خَلَقَ الأَرْضَ فَيَقُولُ اللَّهُ ‏"‏ ‏.‏ ثُمَّ ذَكَرَ بِمِثْلِهِ وَزَادَ ‏"‏ وَرُسُلِهِ ‏"‏ ‏.‏
Reference : Sahih Muslim 134 b
In-book reference : Book 1, Hadith 251
USC-MSA web (English) reference : Book 1, Hadith 243
  (deprecated numbering scheme)