After 833 he lived mostly in Baghdad, at the court of the caliph Mu'tasim.
Setelah tahun 833 dia tinggal di Baghdad, di bawah pimpinan kalifah Mo'tasim.