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 subject of Sura 8: Al-Anfal, which details military conduct and operations. "Al-Anfal" means "the spoils" and is a reference to the post-battle discussion in the Muslim army over how to divide up the plunder from the Quraishi army. Though the Sura does not name Badr, it describes the battle, and several of the verses are commonly thought to have been from or shortly after the battle. This battle is also mentioned in the Sunni Hadith collection Sahih al-Bukhari and Sunan Abu Dawud. Sahih al-Bukhari mentions that Uthman did not join the battle: It also mentions the war booty that each