Muhammad ibn 'Abd al-Rahman ibn Abi Layla al-Ansari, the jurist, the Qur'an reciter, the qadi of Kufa and one of the mujtahids.
The name of Abu Layla was Yasar, and he was among the descendants of Uhayha ibn al-Julah; Ibn Shubruma and others would deny him this lineage. (Ibn Shubruma said:
How can you be hoped for to decide judgements ... when you have not got the judgement right about yourself?
And you claim that you belong to Ibn al-Julah ... but how far your claim is from your origin!)
'Abd al-Rahman ibn Abi Layla used to transmit from 'Umar, may God be pleased with him, 'Ali, ('Abd Allah) and Ubayy, may God be pleased with them.
He was with Ibn al-Ash'ath and was killed at Dujayl. And (this Muhammad) held the judgeship for the Banu Umayya, then held it for the Banu al-'Abbas; he was a jurist who gave fatwas by opinion (ra'y).
He died in the year one hundred and forty-eight while in office as qadi, and Abu Ja'far al-Mansur put his brother's son in his place. Ibn Qutayba mentioned it.
Al-Dhahabi mentioned in Tabaqat al-Qurra': Muhammad ibn 'Abd al-Rahman ibn Abi Layla, the qadi of Kufa and one of the mujtahids. He read [the Qur'an] with his brother 'Isa and others, and Hamza al-Zayyat read with him. He is good in hadith, of great standing, one of the peers of Abu Hanifa in fiqh; his kunya was Abu 'Abd al-Rahman. He transmitted from al-Sha'bi, 'Ata' and al-Hakam. He also read the Qur'an with al-Sha'bi, from his reading with 'Alqama, and he also read with al-Minhal ibn 'Amr, from Sa'id ibn Jubayr.
[Hafiz al-Din al-Kardari mentioned: from 'Abd Allah ibn al-Mubarak, who said: A man asked Abu Hanifa about making an opening (kuwwa) in his wall, and he gave him a fatwa that it was permitted; but Ibn Abi Layla forbade him from that. He came to him a second time, and he said: Open a door in it. Ibn Abi Layla forbade him. Then Abu Hanifa said to the man: How much is your wall worth? He said: Three dinars. He said: Its value is on me; go and demolish it. When he [the neighbour] saw the demolition, he took him to court before Ibn Abi Layla, who said: How can I turn him away from demolishing his own wall? He said: You forbid me from what is easier than that! The qadi Ibn Abi Layla said: What am I to do? You go to a man who shows me my error; shall I not then retract it?!
I saw in al-Tabyin Sharh al-Kanz that al-Zayla'i said: It is related that Ibn Abi Layla was a qadi in Kufa, and one day he heard a man say to another man at the door of his mosque: O son of two fornicators! He ordered him to be seized; he was seized and brought into the mosque, and he gave him two hadd punishments, eighty and eighty, for slandering the two parents.
Abu Hanifa was told of this, and said: How astonishing is the qadi of our town?! He has erred in a single case in five ways: he punished him without the slandered party bringing a suit; he gave him two hadd punishments when only one hadd is due from him even if he slandered a thousand; he carried out the two hadds consecutively, whereas what is required is to separate them by a day or more; he punished him in the mosque, while he, may God bless him and grant him peace, said: «Keep your children and your madmen away from your mosques, and the drawing of your swords and the carrying out of your hadd punishments»; and the fifth: he ought to have ascertained whether the two slandered persons were alive or dead, so that the suit would belong to them or to their child. And if different kinds [of offence] come together against one person, such that he slandered, fornicated, stole and drank, all of them are carried out on him, but not consecutively, for fear of [his] perishing; rather one waits until he has recovered from the first.
I also saw in al-Tabyin, in the chapter on the option for defects: If he [the seller] disclaims to him [the buyer] every defect, it is valid even if he did not name them all, and he cannot return [the item] for any defect. Ibn Abi Layla used to say: Disclaiming a defect is not valid even with naming it as long as the buyer has not seen it. A dispute took place between him and Abu Hanifa in the assembly of Abu Ja'far al-Dawaniqi, and Abu Hanifa said to him: What do you think if he sold a slave-girl with a defect in her private part, or a slave boy with a defect in his penis — would the seller be obliged to show the buyer that place of hers or his? And he kept pressing him in this way until he silenced him, and the caliph laughed. End of quotation.]