Client (mawla) of the Ansar, one of the companions of the Imam, may God Most High be pleased with him.
Muhammad ibn Sama'a the judge, Muhammad ibn Shuja' al-Thalji and Shu'ayb ibn Ayyub al-Sarifini transmitted from him.
He was a Kufan who settled in Baghdad; when Hafs ibn Ghiyath died, he was put in charge of the judgeship in his place.
Al-Khatib relates that when he took up the judgeship he was not successful in it. He knew the doctrine of his companions by heart, but when he sat to judge, success left him, so that he would ask his companions about the ruling on the matter; and when he rose from the judge's session, he returned to the memory he had had. Al-Bakka'i sent to him, saying: Woe to you! You have not been granted success in judging, and I hope this is for a good that God intends for you; so ask to be excused. So he asked to be excused, and was at ease.
From Muhammad ibn Sama'a, who said: I heard al-Hasan ibn Ziyad say: I wrote down twelve thousand hadiths from Ibn Jurayj, all of which the jurists need.
From Ahmad ibn 'Abd al-Hamid al-Harithi, who said: I have not seen anyone of better character than al-Hasan ibn Ziyad, nor more approachable, nor gentler of manner, together with the abundance of his law and learning, his renunciation and his scrupulousness.
He said: Al-Hasan used to clothe his slaves as he clothed himself, following the saying of the Messenger of God, may God bless him and grant him peace: “Clothe them from what you wear.”
His death was in the year two hundred and four.
He used to frequent Zufar and Abu Yusuf for law, may God Most High have mercy on them.
Al-Hasan said: Abu Yusuf was more open-hearted towards teaching than Zufar.
'Ali ibn Salih said: We were with Abu Yusuf when al-Hasan ibn Ziyad approached. Abu Yusuf said: Get to him first and question him, otherwise you will not be able to cope with him. Al-Hasan ibn Ziyad came up and said: Peace be upon you, Abu Yusuf; what do you say? — joining it to the greeting. He said: I saw Abu Yusuf turning his face to this side once and to that side once, because of the many objections al-Hasan put to him, and his going back from one answer to another.
Al-Sam'ani said about him: He was learned in the transmitted doctrines of Abu Hanifa, and he was of good character.
Shams al-A'imma al-Sarakhsi said: Al-Hasan ibn Ziyad is the foremost in question and answer.
Yahya ibn Adam said: I have not seen anyone with more understanding of law than al-Hasan ibn Ziyad.
Among what is related of his religion and scrupulousness: he was asked about a question and erred in it; when the questioner had gone, the truth became clear to him, so he hired a crier to proclaim: Al-Hasan ibn Ziyad was asked for a fatwa and erred concerning such-and-such; whoever was given a fatwa by al-Hasan on anything, let him come back to him. He kept on until he found the person who had received the fatwa, and informed him of the correct answer.
Muhammad ibn Shuja' related from him that he said, when a man asked him: Was Zufar a man of analogy? — What is this saying of yours, “a man of analogy”?! This is the talk of the ignorant; he was a scholar.
The man said: Did Zufar engage in theology (kalam)? He said: How foolish you are! You say of our companions that they engaged in theology, when they are the houses of law and learning? It is only said of one who has no intelligence that he engaged in theology. These men knew God and His bounds too well to speak in the theology that you mean; their concern was nothing but law.