Chief judge in Egypt.
He was born in Baghdad and held the office of market inspector (hisba) there, then the judgeship. Then he came to Cairo and settled there in the judgeship of the Hanafis. He exercised it with severity and awe, but he was much given to joking, jesting, foolishness and foulness of tongue, together with his lack of knowledge of contract formularies and court records, his having no share in law or anything else, a stammer in his speech, and his insolence towards his colleagues and others, until the matter came to the point that a group from the Sultan's kitchen, some of whom he had wronged and against some of whom he had given judgement, attacked him: they made him stand, tore his turban [and wound it] round his neck, ripped his clothes and set upon him with sandals, until one of the emirs reached him while he was crying for help, rescued him from them, arrested some of them and punished them, then escorted him to his house in al-Salihiyya. The common people then stormed his house and plundered it. It was a shameful affair. Then the men of the state judged it right to expel him from Cairo, and they escorted him out in the ugliest manner.
The reason the common people were set upon him was that he gave a fatwa for the killing of the sultan of that time.
Of his foolishness it is related that when a woman brought a case before him with her husband, he would look at her and speak obscenely to her, so that he once said to a woman: Uncover your face. She unveiled, and he said to her father: O dolt, [you] married such a one as this for this dowry? By God, a single night spent with her is worth more than it.
He used to punish with severe beating and harsh discretionary chastisement. It is said that he passed by a man riding with two chickens in his hand, holding their legs in his hand with their heads hanging down. When he saw him he stopped and called for the bailiffs, and they seized the man and brought him to al-Salihiyya. He said to him: How is it lawful for you to take an animal, putting its legs in your hand and its head downwards? Hang this man up so that he may know whether this act causes harm. Intercession was made for him, so he limited his punishment to beating him painfully.
He was the first to order that four witnesses be written in a written deed, and that they write the residence of the debtor.
When he was expelled from Egypt he lived in Damascus for a time, then went to Baghdad and was given the professorship of the shrine of Abu Hanifa, may God Most High be pleased with him.
Thus I have transmitted this biography from al-Durar al-Kamina fi A'yan al-Mi'a al-Thamina and Raf' al-Isr 'an Qudat Misr, both by Ibn Hajar, part of it in summary and part of it transmitted word for word; the responsibility for all of it lies with him, and I do not think it is free of a taint of partisanship.
The author of al-Jawahir mentioned him and did not relate any of these vices about him, and said: News of his death reached us in the year fifty-odd and seven hundred, in Baghdad, may God Most High have mercy on him.