The Quran opens one chapter by glorifying Allah, who carried His servant by night from the Inviolable Place of Worship to the Far Place of Worship, whose surroundings He has blessed, to show him some of His signs. Muslims understand the Far Mosque as Al-Aqsa in Jerusalem, a city holy to Jews, Christians and Muslims alike. Most scholars hold that the journey was a physical one in which he was awake. A few early scholars said it was a vision, and both views are old.
The authentic hadith describe the ascent in detail. In each heaven Gabriel asked for the gate to be opened, and the Prophet ﷺ met earlier prophets who welcomed him as a righteous brother or son: Adam, Jesus and John, Joseph, Idris, Aaron, Moses and Abraham, peace be upon them. He saw the Lote Tree of the Utmost Boundary. Fifty prayers a day were first prescribed, and on the advice of Moses that his people would not be able to bear it, he returned to his Lord several times until it became five, with the promise that each good deed is rewarded tenfold.
The lessons Muslims draw are about connection and mercy: the five prayers are a gift that reaches every Muslim directly, the prophets are one family with one message, and Jerusalem has a special place in Islam. Many Muslims also see it as a mark of honour given to a man who had been rejected by many of his own people in Mecca.