The polytheists decided to kill our Master Muhammad [s]. Jibreel came down from the sky to tell him about the plot of the polytheists.
So, Allah's Apostle asked his cousin Ali bin Abu Talib [a] to sleep in his bed so that he would be able to immigrate to Yathrib safely.
Ali asked our Master Muhammad [s]:
Allah's Apostle, will you be safe?
Our Master Muhammad [s] answered:
Ali rejoiced when the Prophet [s] immigrated safely. He was not thinking about himself when the polytheists attacked our Master Muhammad's house.
Jibreel came down from the heavens reading the following holy verse:
And among them men is he who sells himself to seek the pleasure of Allah.
This verse meant there was a person who sacrificed his life to please Allah, the Glorified. Besides this verse has praised the attitude of Imam Ali [a] and his sacrifice.
Our Master Muhammad [s] arrived in Yathrib. After the Prophet [s] arrived, the Muslims named it al-Madina al-Munawwara (the Illuminated City).