That was the Hijra (هِجْرَة) or Hegira.
The departure of Prophet Mohammed S.W. (May Peace Be Upon Him!) from Mecca to Medina is called Hijrah.
The migration of Muhammad from Mecca to Medina is called the Hijra, which took place in 622 CE. This event marked the beginning of the Islamic calendar and was essential for the growth and establishment of the Islamic community. Muhammad's journey was a response to persecution in Mecca, leading to a welcoming in Medina, where he could spread his teachings freely.
;