Medina was Muhammad's home after his Hijrah from Mecca.
Medina . The city contains al-Masjid an-Nabawi ( `` the Prophet 's Mosque '' ) , which is the burial place of the Islamic prophet Muhammad , and is the second-holiest city in Islam after Mecca . Medina was Muhammad 's destination after his Hijrah from Mecca , and became the capital of a rapidly increasing Muslim Empire , first under Muhammad 's leadership , and then under Ali .