Islam migrants ("Muhajirun"), Muhammad in Medina established his political and religious authority. The Constitution of Medina was formulated, instituting a number of rights and responsibilities for the Muslim, Jewish, Christian and pagan communities of Medina, bringing them within the fold of one community—the Ummah. The Constitution established: All the tribes signed the agreement to defend Medina from all external threats and to live in harmony amongst themselves. Within a few years, two battles took place against the Meccan forces: first, the Battle of Badr in 624 – a Muslim victory, and then a year later, when the Meccans returned to Medina,
Battle of Badr Battle of Badr is one of the few battles explicitly discussed in the Quran. It is even mentioned by name as part of a comparison with the Battle of Uhud. Quran: Al Imran According to Abdullah Yusuf Ali, the term "gratitude" may be a reference to discipline. At Badr, the Muslim forces had allegedly maintained firm discipline, whereas at Uhud they broke ranks to pursue the Meccans, allowing Meccan cavalry to flank and rout their army. The idea of Badr as a furqan, an Islamic miracle, is mentioned again in the same surah. Quran: Al Imran Badr is also the