Career
During the caliphate of Harun al-Rashid, he served as tutor to his heir, the future Caliph al-Amin (r 809–813), and held gubernatorial positions over Tabaristan and Rayy (792–797), and over Khurasan (794/5–795/6). In these positions, he distinguished himself "by the benevolence he showed towards the inhabitants of the eastern provinces" (D Sourdel). He fell out with Harun over his attempts to conciliate the Alids, however, and shared in his family's sudden fall from power in 803.
He was remained imprisoned thereafter and died at al-Raqqah in 808.