 The Muslims of Medina were only able to defeat Banu Hanifa on the third attempt, killing Musaylima in the battle of 'Aqraba, some 30 km north of modern Riyadh, and the rest of Banu Hanifa then made peace with the Muslims and rejoined the new Islamic state.Due to their role in the Apostasy movement, members of Banu Hanifa were initially banned from participating in the early Muslim conquests by the first Caliph, Abu Bakr.The ban was lifted by Abu Bakr's successor Umar, and members of Bani Hanifa subsequently joined Muslim forces in Iraq, with some settling in garrison towns such as al-Kufa.