Original: Yathrib was soon renamed Madinat un-Nabi , literally '' the City of the Prophet '' , but un-Nabi was soon dropped , so its name in English is Medina , meaning '' the city '' .
Simplified: When Muhammad and his followers received an invitation from the people of Yathrib , they decided to leave Mecca .