As they proceeded, they next passed by a group of people who greeted Rasulullah (sallallahu ‘alaihi wasallam) in the following words:
السلام عليك يا أول السلام عليك يا آخر السلام عليك يا حاشر
Peace be upon you, O the one who was first (decreed as the prophet of Allah Ta‘ala)! Peace be upon you, O the one who is last (to be sent to this world from all the Ambiyaa [‘alaihimus salaam])! Peace be upon you, O the one who will be resurrected first!
On passing by this group, Hazrat Jibreel (‘alaihis salaam) told Rasulullah (sallallahu ‘alaihi wasallam) to reply to their salaam. Thereafter, Hazrat Jibreel (‘alaihis salaam) explained the scenes they had passed saying, “The old woman who was standing on the side of the road is actually the dunya. The time for which this world will remain is now very little, equivalent to the period that remains from this old woman’s life. As for the old man, then he was shaitaan. Both the dunya and shaitaan had called out to you hoping to attract your attention. As for the group of people whom you greeted with salaam, then they were Nabi Ebrahim (‘alaihis salaam), Nabi Musa (‘alaihis salaam) and Nabi ‘Isa (‘alaihis salaam).”
In one narration, Rasulullah (sallallahu ‘alaihi wasallam) said, “On the night of Mi’raaj, I passed by the grave of Nabi Musa (‘alaihis salaam) and saw that he was standing engaged in salaah.”
In another narration, Rasulullah (sallallahu ‘alaihi wasallam) mentioned, “On the night of Mi’raaj, I saw Nabi Musa (‘alaihis salaam), Dajjaal and the gatekeeper of Jahannum whose name is Maalik.”
(Extracted from Seeratul Mustafa 1/291-292)