Hearing of the approach of the great Berber armies, Handhala ibn Safwan realized it was paramount to prevent their junction. Dispatching a cavalry force to harass and slow down Abd al-Wahid in the north, Handhala threw the bulk of his forces south, crushing Oqasha in a bloody battle at El-Qarn and taking him prisoner. But Handhala had taken a lot of losses himself, and now faced the unhappy prospect of Abd al-Wahid's gigantic army. Hurrying back, Handhala is said to have put the entire population of Kairouan under arms to bolster his ranks, before setting out again. In perhaps the bloodiest encounter in the Berber wars, Handhala ibn Safwan defeated the great Berber army of Abd al-Wahid ibn Yazid at El-Asnam around May 742 (perhaps a little later), just three miles outside of Kairouan. Some 120,000-180,000 Berbers, including Abd al-Wahid, fell in the field of battle in that single encounter. Oqasha was executed shortly after.