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,
Abu Sufyan ibn Harb to intercept it. The Muslim contingent failed to intercept the caravan. They arrived after the caravan had already passed by Medina. Abu Sufyan had learned of the Muslims' plan from scouts he had deployed, and in response, sent a crier to Mecca to rally the Quraysh to arms against the Muslims. The Muslims ended up engaging this Meccan army, a force of around 1000 men, at the plains of Badr several days after they had failed to intercept the caravan. This conflict, the Battle of Badr, ultimately resulted in a Muslim victory. The death of most Quraysh leaders in the