Ahmad ibn Hanbal, Ibn Ma'in, 'Ali ibn al-Madini, Ishaq ibn Rahawayh and others related from him. He took fiqh from the Imam. Al-Rashid appointed him judge of Baghdad, and he was just in his rulings. He imprisoned al-Marzuban, the agent of Zubayda, for a debt owed by him to one of the Muslims, and Zubayda pressed al-Rashid until he dismissed him, and Abu Yusuf was appointed in his place. Then he appointed him over Kufa, and he stayed there thirteen years. From Abu Hisham: He was sitting to decide judgements between litigants when the caliph's messenger came summoning him, and he said: No, not until the litigants are finished.
Al-Halabi mentioned that Hafs was ill for fifteen days, and he said to his son: Take these hundred and fifty, take them to the official and say to him: This is the allowance for fifteen days, for my absence from judging because of my illness; this is the right of the Muslims, I have no right to it.
From al-Hasan ibn Sajjada: Hafs said: I did not take up the judgeship until carrion had become lawful for me. On the day he died he did not leave behind a dirham, and he left nine hundred dirhams [of debt]. It used to be said: The judgeship was sealed with him.
He died in the year one hundred and ninety-four, and Hasan ibn Ziyad al-Lu'lu'i was put in his place. And God, Glorified and Exalted, knows best.
Chapter: on Yahya ibn Zakariyya ibn Abi Za'ida ibn Maymun (God's mercy be upon him).
That is, the son of Fayruz; Maymun was of the Islamic period, and Fayruz of the pre-Islamic period, a client of 'Amr ibn 'Abd Allah al-Wadi'i.
He heard his father, Hisham, al-A'mash and their like, and heard fiqh from the Imam.
Ibn Hanbal, Ibn Ma'in and others related from him. Al-Rashid appointed him judge of Medina; he came to Baghdad and transmitted hadith there.
From 'Ali ibn al-Madini: Knowledge culminated in Ibn 'Abbas in his time, then in al-Sha'bi in his time, then in al-Thawri in his time, then in Yahya ibn Abi Za'ida in his time; and he was one of those who combined fiqh and hadith.
Al-Khwarazmi mentioned from Salih ibn Sahl that he was the best of the people of his time in memorising hadith and the most learned in fiqh among them, together with much sitting with the Imam.
Al-Halabi mentioned from 'Abd al-Rahman ibn Hatim al-Razi that he was the first to compose books in Kufa, and Waki' only composed on the model of his books. He held the judgeship of al-Mada'in for four months and died there in the year one hundred and eighty-three or eighty-four, while a judge for Harun al-Rashid. About him the poet says, verse:
Lo, Yahya has revived the Law by his knowledge ... so if Yahya dies, prayer for him keeps [him] alive.
He left this world when it presented itself to him ... and he who left this world has won the next.
By what he showed he gained rank with the creatures ... and by what he hid he gained good tidings from the Creator.