In the last years of Hisham's reign Ibrahim and Muhammad were supporters of the caliph's unsuccessful plan to replace the heir-apparent al-Walid ibn Yazid with his own son Maslamah, but with the death of Hisham in 743 their political influence came to an end. Upon his accession to the caliphate al-Walid handed over the two brothers to his new governor of Medina, Yusuf ibn Muhammad ibn Yusuf al-Thaqafi, who paraded them in front of the city inhabitants and had them flogged; shortly afterwards al-Walid ordered Yusuf to transfer Ibrahim and Muhammad to Yusuf ibn Umar al-Thaqafi in Iraq, where together with Khalid ibn Abdallah al-Qasri they were tortured to death.; ; ; ; . The brutal treatment of Ibrahim and Muhammad exacerbated hostility against al-Walid, playing a role in the caliph's own downfall and death and the outbreak of civil war in the following year.
