About ten years.
Twelve years, from August 610 until September 622.
Hazrat Muhammad (SAW) migrated to Madina Munawra at the age of 53. He conquered Mecca in 8th AH. He went back to Madina. He again came to Mecca to perform his first and last Hajj in 10 AH. Again went back and passed away at the age of 63. He lived in Madina Munwra for the last ten years of his life.
Islam born early 600s and the Prophet Muhammad start having vision at 610
The Charter of Madina or Madina Pact was signed between the Muslims and the Jews living in and around Madina. The Muslims were persecuted in Makka. Many of them migrated to Madina. The last Prophet of Islam Hazrat Muhammad (May peace and blessings be upon him) also migrated to Madina. The many people of Madina had embraced Islam. The holy Prophet (MPBUH) and his followers signed a pact with with the neighbouring tribes, mostly the Jews. The Charter or the Pact contained 37 conditions. The spirit of the pact was: 1. The signing parties have equal rights. 2. No party will fight against the other. There will be no no fighting in Madina. 3. In case of attack by any enemy, the signing parties will unit together and defend Madina 4. The parties will not favour any wrong doer or sinner. 5. The pact shall be binding on The Jews living around Madina (There were many tribes of the Jews. 6. The parties shall not give refuge to any non-believer of Quraish. 7. In case of attack on Madina, The Jews will spend their money. 9. In case of any dispute, the matter will be referred to the last Prophet of Islam Hazrat Muhammad (May peace and blessings be upon him) and decided by him. 10. The parties will live in peace with one another. NOTE: The Jews violated this pact and deceived the Muslims during the battles of Uhd and Khandaq. They conspired to kill last Prophet of Islam Hazrat Muhammad (May peace and blessings be upon him) . They also conspired with the Quraish of Makka and urged them to attack Madina. Consequently, the Muslims attacked the Jewish strongholds and banished them from their areas.
hazrat muhammad s a w na ghare sour man katna din guzara
60 years
27 years
500 years to life
210
20 months
He stayed in office one term (4 years)
About 40 years