The shaykh, the imam Abu al-Hasan 'Ali ibn 'Ubayd Allah al-Khatibi.
One of the people of Transoxiana; people counted him in the rank of the chief judge Abu 'Abd Allah al-Damaghani.
He took law from Shams al-A'imma 'Abd al-'Aziz ibn Ahmad al-Halwani, from Abu 'Ali al-Nasafi, from Abu Bakr Muhammad ibn al-Fadl al-Kamari al-Bukhari, from the master 'Abd Allah al-Sabadhmuni, from Abu 'Abd Allah Abu Hafs al-Saghir, from his father Abu Hafs al-Kabir, from Muhammad, from Abu Hanifa, may God have mercy on them.
He took from the chief judge, the imam Abu Muhammad 'Abd Allah al-Nasihi, from Abu al-Haytham the judge, from the judge of the Two Sanctuaries, from Abu Khazim the judge, from Bakr ibn Muhammad al-'Ammi, from Muhammad ibn Sama'a, from Abu Yusuf, from Abu Hanifa, may God have mercy on them.
He came to Isbahan and held the judgeship there for the sultan Tughril Beg.
In Tabaqat al-Hamadhani: His companion 'Abd al-Jabbar ibn 'Ali al-Khwarazmi, teacher at the shrine of Ibn Matta in Kufa, told me, saying: I read with him. He was ascetic and devout, mixing little with the sultans, devoted to teaching knowledge. When he heard a reciter reciting, his eyes overflowed with tears. For seventeen years he stood the night in prayer and did not lay his side on the ground. He performed the pilgrimage while a young man.
'Abd al-Jabbar ibn 'Abd al-Karim al-Khwarazmi studied law with him in Isbahan.
From Abu Mansur ibn Ahmad al-Sabbagh: He came to Baghdad on an embassy from the sultan Tughril Beg in the year four hundred and forty-odd, and debated with Abu Nasr 'Abd al-Rashid ibn Muhammad, and no one else debated with him.
It is related that after Tughril Beg he did not betake himself to any sultan, and kept to silence, so that (they said: perhaps) he would settle between litigants by gesture at times.
He prayed the dawn prayer on a Saturday in the year four hundred and sixty-six in his assembly in Isbahan, and a woman from among his neighbours, known for righteousness and piety, came to him and said: While I was asleep in the time before dawn, I saw as though I were in the city of the Prophet (God bless him and grant him peace). A man had stepped forward, given the call to prayer in his mosque and the call to stand, and the people had lined up behind him. It was said to him: Will you not say the opening takbir? He said: I will not say the takbir until Abu al-Hasan al-Khatibi is present. When he heard that, he rose from his prayer rug, standing, and walked barefoot from his place (and went out on foot, and a group from Isbahan and a group of the notables went out behind him); they caught up with him and asked him to put on sandals, but he would not accept until he reached the village, and anger had left its mark on him. He had entered the state of pilgrim consecration for the hajj without a single dinar with him. His wife was with him, and she died in Basra; his son Isma'il was with him, and his companion, who was his pupil, Abu al-'Ala' the judge al-Bukhari al-Asfahani, Sa'id ibn Muhammad ibn 'Abd al-Rahman, known as Ibn al-Rasimandi. He died at al-Juhfa in the year four hundred and sixty-seven, and his son Isma'il and his companion Abu al-'Ala' went on to Mecca.