Abu Hurairah reported,

The Messenger of Allah ﷺ said, "I saw myself standing in the Hijr while Quraysh were questioning me about my night journey. They asked me about features of Bayt al-Maqdis that I had not committed to memory, and I felt distress like none I had ever felt before. Then Allah raised it up before my eyes so I could look directly at it, and there was nothing they asked me about that I did not inform them of.And I saw myself in a gathering of the prophets. There was Musa standing in prayer, a lean man with curly hair, as though he were one of the men of Shanua.And there was Isa son of Maryam عليه السلام standing in prayer. The person who most resembles him is Urwa bin Masud Thaqafi.And there was Ibrahim عليه السلام standing in prayer. The person who most resembles him is your companion," meaning himself."Then the time for prayer came, and I led them. When I had finished the prayer, a voice said, 'Muhammad, this is Malik, the keeper of the Fire, so greet him.' I turned toward him, but he greeted me first."

Azami 8631

Sahih

عن أبي هريرة، قال

قال رسول الله ﷺ: لقد رأيتني في الحجر وقريش تسألني عن مسراي، فسألتني عن أشياء من بيت المقدس لم أثبتها. فكربت كربة ما كربت مثله قط. قال: فرفعه الله لي أنظر إليه، ما يسألوني عن شيء إلا أنبأتهم به. وقد رأيتني في جماعة من الأنبياء، فإذا موسى قائم يصلي، فإذا رجل ضرب جعد كأنه من رجال شنوءة. وإذا عيسى ابن مريم عليه السلام قائم يصلي. أقرب الناس به شبها عروة بن مسعود الثقفي. وإذا إبراهيم عليه السلام قائم يصلي. أشبه الناس به صاحبكم (يعني نفسه) فحانت الصلاة فأممتهم. فلما فرغت من الصلاة قال قائل: يا محمد، هذا مالك صاحب النار فسلم عليه. فالتفت إليه فبدأني بالسلام.

الأعظمي 8631صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Mission of the Prophet ﷺ and his life in Makkah
Section
Revealing Bayt al-Maqdis and other things to the Prophet ﷺ when Quraysh questioned him about the Isra
Numbering
Jami al-Kamil 8631 (2nd edition)
Azami 8631