Medina was one of the places Muhammad went to.
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 . Muhammad . 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 .