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 Uhud opposition from the rest of the Quraysh, the tribe that ruled Mecca and to which he belonged. The Muslims fled Mecca in 622 after years of persecution and established themselves at Medina (formerly known as "Yathrib"; Medina means "City"). The Quraysh had seized the properties and families of Muslims in Mecca and dispatched caravans to Damascus which the Muslims intercepted and raided. The Meccans sent out a small army to punish the Muslims and stop their raiding. At the Battle of Badr in 623, a small Muslim force defeated the much larger Meccan army. Many Muslims considered this unexpected victory