He was born in the year 304 in the land of Daylam, and grew up there.
Ibn al-Najjar said: He came to Baghdad in the year 337, returning from the pilgrimage, and attached himself to Abu al-Hasan al-Karkhi, studied jurisprudence with him, and reached a great level in jurisprudence.
Before and after that he studied theology (kalam) with Abu 'Abd Allah al-Husayn ibn 'Ali al-Basri, and jurisprudence as well; he excelled in both until he reached the rank of one fit to teach and to instruct in jurisprudence.
He was constantly asked for fatwas on occurrences in Baghdad, and he would answer in his own hand with the best answer in the finest expression, except that when he spoke, a foreign accent showed in his speech.
Mu'izz al-Dawla Ahmad ibn Buwayh invested him with the office of marshal (naqaba) over the 'Alids in Baghdad.
The judge Abu 'Ali al-Tanukhi said: I have not seen — as far as I know — anyone more excellent than him in religion, learning, chastity, practice, striving, scrupulousness and abundance of prayer; I accompanied him, and I saw him for most of the night only praying and reciting, and for most of the day occupied between prayer and study of the Qur'an or of learning.
He said: In Baghdad a group kept pledging allegiance to him for the imamate, while he was unable to rise up because of Mu'izz al-Dawla; when it was the year 353, Mu'izz al-Dawla went out to Mosul and left his son as his deputy in Baghdad, and he went out in disguise until he reached the land of Daylam; they pledged allegiance to him for the imamate, and he took the title al-Muhtadi li-Din Allah.
He died in the year 359.