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 Hab Battle of Hab In the Battle of Hab () on August 14, 1119, a Crusader army commanded by King Baldwin II of Jerusalem won a disputed victory over a Muslim army led by Ilghazi of Mardin since the Muslim army claimed it as a victory. The battle stabilized the Principality of Antioch, which had suffered a disastrous defeat only weeks before. Baldwin II managed to re-take all of the castles conquered by Ilghazi and prevented him from marching on Antioch. On June 28, 1119, Ilghazi's Turco-Syrian army destroyed the Antiochene army at the Battle of Ager Sanguinis. After his great