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 . Three years later , in 610 , Muhammad started preaching these revelations publicly , proclaiming that `` God is One '' , that complete `` surrender '' ( lit .