One of the companions of Hafs ibn Ghiyath; he narrated from him and benefited from him.
He heard Abu Bakr ibn 'Ayyash, 'Abd Allah ibn Idris, Muhammad ibn Fadl, Waki', 'Abd al-Rahman al-Muharibi, Abu Mu'awiya al-Darir, Mufaddal ibn Salih, 'Abd Allah ibn Numayr, Abu Usama and others.
Al-Khatib said: He was one of the people of knowledge and merit.
He held the judgeship of Kufa before Ibrahim ibn Abi al-'Anbas, and he was also invested with the judgeship of Hamadhan.
He came to Baghdad and narrated hadith there; 'Abd Allah ibn Ishaq al-Mada'ini, Yahya ibn Muhammad ibn Sa'id, Ibrahim ibn Hammad the qadi, Muhammad ibn 'Ubayd Allah ibn al-'Ala' the secretary, 'Ali ibn 'Isa the vizier, and others transmitted from him.
Ahmad ibn Salih al-Hamadhani said: I have heard that in Kufa he was called the Monk of Kufa; when he took up the judgeship he said: I have been forsaken in old age, I have been forsaken in old age!! — despite his chastity and integrity.
Abu al-Qasim 'Ubayd Allah ibn Sulayman related, saying: I was secretary to Musa ibn Bugha, and we were in al-Rayy, whose qadi at that time was Ahmad ibn Budayl al-Kufi. Musa needed to consolidate an estate there in which he had shares, and to develop it; and in it there was a share belonging to an orphan. So I went to Ahmad ibn Budayl — or: I summoned Ahmad ibn Budayl — and spoke to him about selling us the orphan's portion and taking the price. He refused, and said: The orphan has no need to sell, and I am not safe, if I sell his property while he has no need of [the money], from some mishap befalling the money, and then I would have lost it for him.
I said: We will give you for the price of his portion double its value.
He said: That is no excuse for me to sell; the situation regarding the property when it is much is the same as when it is little.
He said: I tried him in every way, and he kept refusing, until he exasperated me, and I said: O qadi, do not do this, for it is Musa ibn Bugha.
He said to me: May God strengthen you, it is God, Blessed and Exalted.
He said: I was ashamed before God to return to him after that, and I left him.
I went in to Musa, and he said: What have you done about the estate?
I told him the story, and when he heard 'it is God, Blessed and Exalted' he wept, and kept repeating it; then he said: Do not interfere with this estate, and look into the affairs of this righteous shaykh; if he has any need, fulfil it.
He said: So I summoned him and said to him: The amir has released you from the matter of the estate, for I explained to him what passed between us, and he offers to fulfil your needs.
He said: He prayed for him, and said: This deed best preserves his blessings. I have no need except the payment of my stipend, for it has been delayed for months, and that has harmed me.
He said: So I released his stipend to him.
Al-Khatib narrated with his chain from Ahmad ibn Budayl, who said: Al-Mu'tazz sent messenger after messenger to me; so I put on my kumma and put on a single-soled sandal, and came to his door. The chamberlain said: Shaykh, your sandals!
I paid no attention to him, and went through the second door, and the chamberlain said: Your sandals!
I paid no attention to him, and went in to the third, and he said: Shaykh, your sandals!
I said: Is this the holy valley, that I should take off my sandals?
So I went in with my sandals on; he raised my seat and I sat on his prayer-mat, and he said: We have wearied you, Abu Ja'far.
I said: You have wearied me and frightened me; so how will it be with you when you are asked about me!
He said: We meant nothing but good; we wanted to hear knowledge.
I said: And you want to hear knowledge too? Why did you not come to me? For knowledge is come to, it does not come.
He said: The secretary took the paper and the inkwell, and I said to him: Will you write the hadith of the Messenger of God, may God bless him and grant him peace, on paper with ink!
He said: Then on what shall we write?
I said: On parchment.
So they brought parchment and ink, and the secretary was about to write, and I said: Write in your own hand.
[Al-Mu'tazz] signalled to him not to write, and I dictated to him two hadiths with which God made his eyes sore. Ibn al-Banna' or Ibn al-Nu'man asked him: Which two hadiths?
He said: I said: The Messenger of God, may God bless him and grant him peace, said: «Whoever is entrusted with a flock and does not guard it with sincere counsel, God forbids Paradise to him»; and the second: «There is no commander of ten but he will be brought on the Day of Resurrection in fetters». End [of quotation].
His death was in the year two hundred and fifty-eight. May God Most High have mercy on him.