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 : Book 1, Hadith 251 USC-MSA web (English) : Book 1, Hadith 243 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.