The guard of the prison was influenced by his good manners so that he retired from guarding prison. Afterwards, Al-Kaadhum “a.s.” was conveyed from Basra to Bahgdad according to Haroun’s order and was imprisoned at the jail of Al-Fadhl bin Rabie then that of Al-Fadhl bin Isa, and finally he was carried to the prison of As-Sindi bin Shahik.
Imamu alizidi kuhamishwa kutoka gereza hadi jingine na baadae alihamishiwa kwenye gereza lingine katika mji wa Baghdad kwa amri ya Haroun. Imamu alifungwa katika magereza tofauti kama vile:- (a) Fadhili bin Rabii kisha (b) Fadhili bin Issa na mwishoni alihukumiwa katika Gereza la (c) Sanady bin Shaahik.