Ali Ibne Ja’far Haminawi was a resident of Baghdad suburbs and was the representative of Imam Hadi (a.s.). When Mutawakkil learnt of this he threw him into prison and issued orders for his execution. He requested the Imam to pray for him and when Imam prayed, Mutawakkil fell suddenly ill and as ransom released all prisoners. Under orders of Imam (a.s.), he moved to Mecca and settled down there.
Ahsanul Maqal,vol.2 pg282