Laylat al-Mabit is the night when the Islamic prophet Muhammad left the city of Mecca and began his migration to Medina. Many of the Meccan polytheists had planned to kill Muhammad on the night that he left Mecca. That night, Ali risked his life by sleeping in Muhammad's bed so that Muhammad could leave Mecca safely.