Abu al-Layth al-Hafiz, Nasr al-Samarqandi.
This Abu al-Layth preceded the Abu al-Layth known as Imam al-Huda by eighty years. The death of the first was in the year two hundred and ninety-four, and the death of the second in the year three hundred and seventy-three. The second Abu al-Layth is titled al-Faqih, and this one al-Hafiz.
In the Book of the Forbidden and the Permitted of Fatawa Fakhr al-Din Qadi Khan: It is related from Abu al-Layth al-Hafiz that he said: I used to give fatwas on three things and then retracted them: I used to give the fatwa that it is not lawful for the teacher to take a wage for teaching the Qur'an; I used to give the fatwa that the scholar ought not to go in to the sultan; and I used to give the fatwa that the man of learning ought not to go out to the villages and preach to them so that they collect something for him. Then I retracted all of that. He retracted only to guard against the loss of learning, the Qur'an and rights. So al-Sadr al-Shahid mentioned it at the end of the Book of Disapproved Things in his Waqi'at in exactly these words, except that he said in al-Waqi'at: I used to give the fatwa that it is not lawful for the teacher to take a wage.
Also in Fatawa Qadi Khan, in the section on hiring out riding animals in the Book of Hire: If he hired it out for ten qafizs of barley to be loaded on it, and ten qafizs of wheat, the same measure as the barley, were loaded on it, the jurist Abu al-Layth al-Hafiz, may God have mercy on him, said: He is liable for the value of the animal, because wheat is harder and heavier than barley, so he is liable, just as if he had loaded iron on it in place of the wheat.
In al-Jawahir al-Mudiyya: It is reported from him, meaning Abu al-Layth al-Hafiz, in Mal al-Fatawa, that he said: Whoever busies himself with kalam has his name erased from among the scholars.