Muhammad had to leave Mecca his birth place where he started preaching and take refuse in Medina, where he was given a warm welcome. This event took place in AD 622 and is known as the year of the Hijira, or migration, which became the first year of the Muslim Calendar.