That same year, he became involved in the conspiracy to assassinate the caliph al-Mu'tasim (r. 833–842) and replace him with al-Abbas ibn al-Ma'mun. When the plot was discovered he was arrested and put in irons, but after al-Afshin interceded for him he was released and received the governorship of al-Dinawar instead.[2]