The Prophet ﷺ permitted his companions to migrate to Al-Madinah, so they left in secret as not to be noticed, the first of them was said to have been: Abu Salama ‘Abdul-Asadi Al-Makhzomi or Mus’ab ibn ‘Umair, when they came to the Ansar, the Ansar gave them shelter and aided them and Islam spread within Al-Madinah.
Later the Messenger of Allah ﷺ was allowed to migrate, he left out on a Monday in the month Rabi’ul-awwal, at this time he was fifty-three years old, with him was Abu Bakr, ‘Amir ibn Fuhaira (freed slave of Abu Bakr) and their guide ‘Abdullah ibn Urayqt Al-Laythy. The Prophet and Abu Bakr took shelter for a few days in the cave ‘Thawr’ and then continued their journey via the coast.