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 with the polytheists, we shall be steadfast in our support to you. In war and in peace, we shall be consistently faithful to you." So, the Muslims continued to march towards Badr. By 11 March both armies were about a day's march from Badr. Several Muslim warriors (including, according to some sources, Ali) who had ridden ahead of the main column captured two Meccan water carriers at the Badr wells. Expecting them to say they were with the caravan, the Muslims were horrified to hear them say they were with the main Quraishi army. Some traditions also say that, upon