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,
Islam and war This Muslim victory over polytheists showed "demonstration of divine guidance and intervention on behalf of Muslims, even when outnumbered." Other early battles included battles in Uhud (625), Khandaq (627), Mecca (630) and Hunayn (630). These battles, especially Uhud and Khandaq, were unsuccessful in comparison to the Battle of Badr. In relating this battle, the Qu'ran states that Allah sent an "unseen army of angels" that helped the Muslims defeat the Meccans. Islamic concepts concerning war refer to what have been accepted in Sharia (Islamic law) and Fiqh (Islamic jurisprudence) by "Ulama" (Islamic scholars) as the correct Islamic manner which is