Muhammad drafted the Constitution of Medina.
The traditional Islamic narrative about this document is as follows: It was drawn up on behalf of the Islamic prophet Muhammad shortly after he arrived at Medina (then known as Yathrib) in 622 CE (or 1 AH), following the Hijra from Mecca
According to Ibn Ishaq, all parties in the area agreed to the Constitution of Medina, which committed all parties to mutual cooperation under the leadership of Muhammad

