Herein, how many years did Prophet Muhammad live in Medina?
Yathrib soon became known as Medina, the City of the Prophet. Muhammad remained here for the next six years, building the first Muslim community and gradually gathering more and more people to his side. The Meccans did not take Muhammad’s new success lightly.
Keeping this in view, why was Muhammad forced to migrate to Madina?
In 622 CE, Muhammad and his followers migrated to Yathrib in the Hijra to escape persecution, renaming the city Medina in honor of the prophet. Among the first things Muhammad did to ease the longstanding grievances among the tribes of Medina was draft a document known as the Constitution of Medina.