The Messenger of Allah ﷺ said, "Do not give preference to one prophet over another. On the Day of Resurrection, people will fall unconscious, and I will be the first one for whom the earth splits open. Then I will find Musa holding on to one of the pillars of the Throne. I do not know whether he was among those who fell unconscious, or whether he was spared on account of the unconsciousness he experienced at the first occasion."
قال رسول الله ﷺ: لا تخيروا بين الأنبياء، فإن الناس يصعقون يوم القيامة فأكون أول من تنشق عنه الأرض، فإذا أنا بموسى آخذ بقائمة من قوائم العرش فلا أدري أكان فيمن صعق أم حوسب بصعقة الأولى.
Bukhari related it in "Disputes" (2412) from Musa bin Ismail, who said, Wahib narrated to us, who said, Amr bin Yahya narrated to us, from his father, from Abu Saeed, and he related the same. The hadith includes the story of the dispute between the Muslim and the Jew, which will come in its proper place. The two Shaykhs, Bukhari (3398) and Muslim in "Virtues" (2374), both related it from the hadith of Sufyan, from Amr bin Yahya with his chain, but it does not mention the legs of the Throne.The scholars said, the Prophet ﷺ only said this out of humility, if he said it after having been informed that he was the best of creation. If he said it before knowing that, then there is no difficulty. Otherwise, it has been established by the Book and the sunnah that the Prophet ﷺ is the best of creation, and that Allah favored some messengers over others, as the Almighty said, "Those messengers, We favored some of them over others. Among them were those to whom Allah spoke, and He raised some of them in rank" [Baqarah 2:253].