 On the way to the Umayyad capital in Syria, Abd al-Malik encountered the army of Muslim ibn Uqba, who had been sent by Yazid to subdue the rebels in Medina.He provided Ibn Uqba intelligence about Medina's defenses.The rebels were defeated at the Battle of al-Harra in August 683, but the army withdrew to Syria after Yazid's death later that year.