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."
قال رسول الله ﷺ: لقد رأيتني في الحجر وقريش تسألني عن مسراي، فسألتني عن أشياء من بيت المقدس لم أثبتها. فكربت كربة ما كربت مثله قط. قال: فرفعه الله لي أنظر إليه، ما يسألوني عن شيء إلا أنبأتهم به. وقد رأيتني في جماعة من الأنبياء، فإذا موسى قائم يصلي، فإذا رجل ضرب جعد كأنه من رجال شنوءة. وإذا عيسى ابن مريم عليه السلام قائم يصلي. أقرب الناس به شبها عروة بن مسعود الثقفي. وإذا إبراهيم عليه السلام قائم يصلي. أشبه الناس به صاحبكم (يعني نفسه) فحانت الصلاة فأممتهم. فلما فرغت من الصلاة قال قائل: يا محمد، هذا مالك صاحب النار فسلم عليه. فالتفت إليه فبدأني بالسلام.
Muslim narrated it in the Book of Faith (172) from Zuhayr bin Harb, who said, Hujayn bin Muthanna told us, Abdul-Aziz (who is the son of Abu Salama) told us, from Abdullah bin Fadl, from Abu Salama bin Abdul-Rahman, from Abu Hurairah, and he related it in the same manner.