Mohammad lived in Mecca.
Hegira
He went to medina
the Prophet Mohammed was born in Mecca, Saudi Arabia
from Makkah (or Mecca) in the Kingdom of Saudi Arabia.
Muhammad/Mohammad was born and lived in Makkah for the first 52 years of his life. He died in the city of Medina.
SANANE
What? Its Mecca to Medina. Grammar, buddy.
They both have the two holy Mosque, and prophet Mohammad was born in Mecca and buried in Medina where he died.
He didn't flee to Mecca, rather he and his followers were forced to migrate from their native city of Mecca to Madina. This event is called Hijrat.
In year 632
The Prophet Mohammad started Islam and he was born in Mecca, a small town in Arabia.