Laylat al-mabit

'the overnight stay') refers to the night in 622 CE in which the Islamic prophet Muhammad fled Mecca for Yathrib, apparently to foil an assassination plan.

As the harassment of early Muslims in Mecca continued, or perhaps with the hope of better prospects,[1] Muhammad asked his followers to emigrate to the city of Yathrib,[1] whose residents had pledged to protect him there.

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.

[11][12][13] Alternatively, the historian Ibn Ishaq (d. 767) writes that Muhammad reassured Ali of his safety in advance.

[14] At any rate, Muhammad left Mecca in the meantime under cover of darkness, joined later by Abu Bakr, another companion.

Upon arrival, Muhammad founded the Quba mosque , now located inside Medina , Saudi Arabia