who accompanied the prophet on his migration to madinah
Hegira The Hegira, Hijrah or Hijrath (Arabic: هِجْرَة‎) is the migration or journey of the Islamic prophet Muhammad and his followers from Mecca to Yathrib, later renamed by him to Medina, in the year 622.[1] In June 622, after being warned of a plot to assassinate him, Muhammad secretly left his home in Mecca to emigrate to Yathrib, 320 km (200 mi) north of Mecca, along with his companion Abu Bakr.[6] Yathrib was soon renamed Madīnat an-Nabī (Arabic: مَـديـنـة الـنّـبي‎, literally "City of the Prophet"), but an-Nabī was soon dropped, so its name is "Medina", meaning "the city".[7]
Treaty of Hudaybiyyah The Treaty of Hudaybiyyah (Arabic: صلح الحديبية) was an important event that took place during the formation of Islam. It was a pivotal treaty between Muhammad, representing the state of Medina, and the Quraysh tribe of Mecca in March 628 (corresponding to Dhu al-Qi'dah, 6 AH). It helped to decrease tension between the two cities, affirmed a 10-year peace, and authorized Muhammad's followers to return the following year in a peaceful pilgrimage, later known as The First Pilgrimage.[1][2][3]