In 622 CE, the year of Muhammad's migration to Yathrib (now Medina), Ali risked his life by sleeping in Muhammad's bed to impersonate him and thwart an assassination plot, so that Muhammad could escape in safety.[25][26] This night is called "Laylat Al-mabit".