Laylat al-mabit

Laylat al-mabit (لَـیْـلَـة ٱلْـمَـبِـیْـت) refers to the night in 622 CE in which the Islamic prophet Muhammad fled Mecca for Yathrib, apparently to foil an assassination plan. His escape from Mecca followed the exodus of his persecuted followers to the safe haven of Yathrib, a city that was later renamed Medina in his honor. Laylat al-mabit is often associated in Islamic literature with the reports that Muhammad's cousin Ali ibn Abi Talib risked his life to facilitate Muhammad's safe escape from Mecca.

Event
As the harassment of early Muslims in Mecca continued, or perhaps with the hope of better prospects, Muhammad asked his followers to emigrate to the city of Yathrib, whose residents had pledged to protect him there. To attract less attention, Muslims left Mecca in small groups, throughout the summer of 622 CE, while Muhammad remained behind in Mecca to organize and encourage the emigration efforts, or perhaps to ensure an independent position in Yathrib upon his arrival later. Alarmed by the new developments, the Meccan clan leaders decided to murder Muhammad. The plan was for a group of warriors, one from each Meccan clan, to kill Muhammad together to avoid any potential retribution from Muhammad's clan, the Banu Hashim.

An informant, or perhaps the archangel Gabriel, disclosed the assassination plot to Muhammad. To foil their plans, his young cousin Ali ibn Abi Talib risked his life and slept in Muhammad's bed that night instead of him. Alternatively, the historian Ibn Ishaq writes that Muhammad reassured Ali of his safety in advance. At any rate, Muhammad left Mecca in the meantime under cover of darkness, joined later by Abu Bakr, another companion. In a last-minute change of plans, however, the assassins waited until the next morning to attack. At dawn, they broke into the house and found Ali, whose life they spared. He stayed behind in Mecca for a few days after Muhammad's departure to return the goods entrusted to him, who was evidently known in Mecca as al-Amin (lit. 'the trustworthy'). Then Ali too escaped Mecca together with a few Muslim women, including his mother, Fatima bint Asad, and Muhammad's daughter, Fatima. Muhammad is said to have waited outside of Yathrib in Quba for Ali to join him before entering the city on 27 September 622. Yathrib was later renamed Medinat al-Nabi (lit. 'city of the prophet'), or simply Medina, in his honor.

Mention in the Quran
That Ali reputedly risked his life to facilitate Muhammad's safe escape may have been the reason for the revelation of verse 2:207 in the Quran, "But there is also a kind of man who gives his life away to please God, and God is most compassionate to his servants." This was the opinion Ibn Abbas, an influential early exegete, and such reports are also found in the works of the Sunni authors al-Tha'labi , al-Razi , and al-Haskani, the Shia authors al-Tabarsi , al-Hilli , al-Balaghi , and the Mu'tazilite scholar Ibn Abi'l-Hadid.