Muhammad was a person.
The Hegira or Hijrah ( [ ) 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 . Muhammad . According to Islamic doctrine , he was God 's Messenger ( rasūl Allāh ) sent to confirm the essential teachings of monotheism preached previously by Adam , Abraham , Moses , Jesus , and other prophets . To escape persecution , Muhammad sent some followers to Abyssinia before he and his followers migrated from Mecca to Medina ( then known as Yathrib ) in the year 622 .