The Constitution of Medina, a compact of Muslims, Jews and the tribes of Yathrib (opens in a new tab)
The Prophet issued a written document (al-sahifa) uniting Emigrants, Helpers and their Jewish allies as one community for defence, with the Prophet as arbiter of disputes.