The shaykh, the imam, the most learned Najm al-Din Abu al-Hasan 'Ali ibn Dawud al-Qahfazi.
He was an excellent, ascetic imam, a jurist, a legal theorist, a grammarian, a man of letters and a poet.
He took the sciences from many shaykhs, was trained, and reached the rank of excellence and perfection.
His father was the judge 'Imad al-Din Dawud ibn 'Ali ibn Kamil ibn Yahya ibn Khabbaza ibn 'Abd al-Malik, whose lineage goes back to al-Zubayr ibn al-'Awwam.
He held the teaching post of the inner Mu'izziyya (al-Mu'izziyya al-Juwwaniyya).
He died in the year six hundred and eighty-four, while his son, the most learned Najm al-Din al-Qahfazi, was of childhood age; then he took the sciences from the mouths of the excellent men.
So he was a brimming sea and a splendid scholar, and he had a long reach in poetry.
'Abd al-Qadir said in al-Jawahir al-mudi'a: The shaykh, the most learned, the shaykh of grammarians and men of letters al-Qahfazi recited to us, of his own composition, about a slave-girl named Qulub:
A reproacher blamed me for my love of you, ... claiming to advise me in it, while he is a liar;
He said: "What is in your heart? Tell it to me." ... I said: "In the heart of the love-sick one is Qulub (hearts)."
And he recited to me, of his, about a handsome grammarian:
I concealed in my heart love for a young fawn ... busy with grammar, who is not fair;
One day I sought from him what I had concealed for him, ... and he said to me: "The concealed (pronoun) cannot be qualified."
And one day he recited a riddle to the group of students who studied with him:
O learned one, ... with whom the science of prosody is blended,
Build us a circle ... in which are basit and hazaj.
The group thought for a while; then one of them said: "This is the water-wheel (saqiya)." He said: "I went round in it for a while until it became clear to you," meaning that he is an ox turning in the water-wheel.
It is said: When the emir Tankiz, may God have mercy on him, built his congregational mosque in Damascus the Protected, they appointed for it a Hanafi nicknamed al-Kishk to be preacher. One day, as he was walking in the mosque, they mentioned to him Shaykh Najm al-Din al-Qahfazi, and that among the Hanafis he was like Ibn al-Zamlakani among the Shafi'is. So he summoned him and they talked; then, while they were in the mosque, he said: "What do you say about this mosque?" He said: "Handsome, and a handsome courtyard (sahn, also 'dish'), but it is not fitting that there should be kishk in it." The emir Tankiz was pleased by that and appointed him to the preachership of that mosque; then after a while he appointed him to teach at the Rukniyya madrasa. He held it for a long time, then gave it up and said: "It has a stipulation that I do not fulfil." Its stipend (per month) was a considerable sum; he left it out of scrupulousness.