'Ali ibn Muhammad ibn 'Ali ibn al-Husayn was the son of the fifth imam of Twelver Shii Muslims and fourth imam of Ismaili Shii Muslims, Muhammad al-Baqir.