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,
Military career of Muhammad in their favour. Afterwards the two armies exchanged arrow fire, before finally clashing. According to the Quran, thousands of angels descended from heaven and participated in the battle, being instructed by Allah to "smite the [Meccan warrior's] necks and smite of them each finger." According to another Quranic verse, Allah fought and killed the Meccans representatively for the Muslim warriors. The Meccan army eventually collapsed soon after the horse of Abu Jahl was brought down, resulting in the first major Muslim victory. This victory must not so much be ascribed to divine intervention as is done in the Islamic sources,