Alī ibn Muhammad ibn ‘Alī (Arabic: محمد بن علی علی ابن; 828-868 C.E. ) commonly called Ali al-Hadi and Alī an-Naqī was known as al-Hadi. He was the tenth of the Twelve Imams after his father Muhammad al-Jawad and before his son Hasan al-Askari. He remained in Medina teaching until the age of 30 when he was summoned to Samarra by the Abbasid caliph Al-Mutawakkil. There he was treated roughly by the caliph and his successors until, according to Shiite accounts, he was poisoned through intrigue of Al-Mu'tazz the Abbasid caliph, in 254/868, and was buried in Samarra.