The ‘Constitution of Medina’ is probably the first legal document of Mu?ammad and dates back to the first year after his hijra (622 CE), or “emigrationâ€, which brought him from his hometown Mecca to the cluster of towns known as Yathrib or Medina in the Hijaz (northern Arabia) and marked the beginning of the Islamic era.