Despite an initial victory against the Abbasids led by Abd al-Samad ibn Ali at Qinnasrin, Abu Muhammad's forces were defeated near Homs. In the latter battle, Abu al-Ward and many of his kinsmen and Qaysi soldiers were killed, while Abu Muhammad fled to the desert town of Palmyra. The Abbasid commander Bassam ibn Ibrahim attempted and failed to capture Palmyra, but Abu Muhammad fled again, this time heading for Arabia. There, he found a safe haven near Uhud. Abu Muhammad and his family remained in Arabia until they were tracked down and killed during Caliph al-Mansur's reign (r. 754–775). Abu Muhammad's revolt, although short-lived, was the most significant threat the Abbasids faced in the period immediately following their successful revolution against the Umayyads. The revolt motivated the Abbasids to track down and eliminate other remnants of the Umayyad dynasty.