Al-Khatib related with his chain of transmission that Ibn Hubayra spoke to Abu Hanifa about his taking the judgeship of Kufa, and he refused him. So he beat him a hundred and ten lashes, while he persisted in refusing; and when he saw that, he let him go.
Ibn Hubayra was at that time Marwan's governor over Iraq, in the time of the Umayyads.
Al-Khatib also related that he would bring him out every day, or every few days, and he would be beaten so that he would enter the judgeship, and he would refuse.
On one of the days he wept, and when he was released he said: My mother's distress was harder on me than the beating.
Whenever that was mentioned to Ahmad ibn Hanbal he would weep and pray for mercy on him, especially after he himself had also been beaten.
It is related from Isma'il ibn Hammad ibn Abi Hanifa that he said: I passed with my father through al-Kunasa, and he wept. I said: What makes you weep, father?
He said: My son, in this place Ibn Hubayra beat my father for ten days, ten lashes every day, to make him take the judgeship, and he did not do it.
Al-Khatib related with his chain of transmission from Bishr ibn al-Walid al-Kindi, who said: Abu Ja'far al-Mansur summoned Abu Hanifa from Kufa and pressed him to let him appoint him to the judgeship, and he refused. He swore against him that he would certainly do it, and Abu Hanifa swore that he would not do it; al-Mansur swore that he would certainly do it, and Abu Hanifa swore that he would not do it. Al-Rabi' the chamberlain said: Do you not see the Commander of the Faithful swearing!
Abu Hanifa said: The Commander of the Faithful is more able to expiate his oaths than I am to expiate mine.
He refused to take office, and he ordered him to prison at once.
It is related that Abu Ja'far al-Mansur, after imprisoning him, summoned him one day and said to him: Do you disdain what we are engaged in?
He said: May God set the Commander of the Faithful right, I am not fit for the judgeship.
He said to him: You lie.
Then he offered it to him a second time, and Abu Hanifa said: The Commander of the Faithful has ruled against me that I am not fit for the judgeship, because he has charged me with lying: if I am a liar, then I am not fit; and if I am truthful, then I have informed the Commander of the Faithful that I am not fit.
He did not accept this from him and returned him to prison, and he remained there until he died in it, according to the sound [version] of the reports.
'Abbas al-Duri related, saying: They told us about al-Mansur that when he had built his city and settled in it, and al-Mahdi had settled on the eastern side and built the mosque of al-Rusafa, he sent for Abu Hanifa, and he was brought, and he offered him the judgeship of al-Rusafa, and he refused. He said: If you do not do it, I will beat you with whips.
He said: Would you do that?!
He said: Yes.
So he sat as judge for two days and no one came to him. On the third day a coppersmith came to him with another man, and the coppersmith said: This man owes me two dirhams and four daniqs, the price of a brass vessel.
Abu Hanifa said: Fear God, and consider what the coppersmith says.
He said: I owe him nothing.
Abu Hanifa said to the coppersmith: What do you say?
He said: Make him swear.
Abu Hanifa said to the man: Say: By God, other than whom there is no god. He began to say it, and when Abu Hanifa saw that he was determined to swear, he cut him short, put his hand into his sleeve, untied a purse, and took out two heavy dirhams, and said to the coppersmith: These two are compensation for the balance of [the price of] your vessel.
The coppersmith looked at them and said: Yes. And he took the two dirhams.
Two days later Abu Hanifa fell ill; he was sick for six days, then died, may God Most High have mercy on him and be pleased with him.
'Abbas said: And this is his grave in the cemeteries of al-Khayzuran, on the left as you enter by the Gate of the Cotton-Merchants, after two or three graves.
It has been said that al-Mansur brought him to Baghdad for a matter other than the judgeship.
It has been said that he stayed fifteen days after his arrival in Baghdad, then al-Mansur gave him [poison] to drink, and he died, may God Most High have mercy on him and may God be pleased with him. That was in the year one hundred and fifty, and he was seventy years of age.