Badr al-Hammami mentioned by al-Tabari. This success was soon followed by the decisive victory of the Abbasid army at the Battle of Hama in November, which led to the capture and execution of Husayn and the senior Qarmatian leaders. In autumn 904, the Abbasids under Muhammad ibn Sulayman al-Katib launched a campaign to recover Egypt and end the Tulunid regime. When Muhammad arrived at the borders of Egypt in November, Badr went over to him. The defection of the most senior commander was soon followed by other Tulunid officers, and when Harun ibn Khumarawayh was killed by one of his own men,
Battle of the Trench many alliances against the Muslim expansion. Nevertheless, he was unable to prevent the Meccan one. As they had in the battles of Badr and Uhud, the Muslim army again used strategic methods against their opponents (at Badr, the Muslims surrounded the wells, but did not deprive their opponents of water since Ali did not want to follow the footsteps of the Meccan army; at the Battle of Uhud, Muslims made strategic use of the hills). In this battle they dug a trench to render the enemy cavalry ineffective. The reason for this battle was to defend Medina from attack, after