The learned mawla who acted on his learning, the accomplished, excellent and perfect Khayr al-Din Khalil ibn Qasim ibn Hajji Safa, may God refresh his spirit.
The author of al-Shaqa'iq said: The son of the aforementioned mawla, Ahmad ibn Mustafa ibn Khalil ibn Qasim ibn Hajji Safa, he is my grandfather on my father's side. His remotest ancestor came from the lands of the Persians to the lands of Rum, fleeing from the tribulation of Chinggis Khan, and settled in the environs of Qastamuni. He was a possessor of miracles, and prayers are answered at his grave; this is well known.
A son was born to him named Ahmad; he too was versed in Arabic and fiqh, but he did not reach the degree of excellence. A son was born to him named Hajj Safa; he too was a jurist, a worshipper and a righteous man, but he had no surpassing excellence. A son was born to him named Qasim, who died as a young man while seeking knowledge. A son was born to him named Khalil, and he is my grandfather, our master Khayr al-Din, and he did reach the rank of excellence.
He studied the elements of the sciences in his own country, then travelled to Adrianople (Adirna), and there he studied with the brother of our master Khusraw, and he studied hadith and tafsir with the mawla Fakhr al-Din al-'Ajami. Then he came to the city of Brusa and reached the mawla Yusuf Bali ibn Shams al-Din al-Fanari, may God have mercy on him, while he was teaching at the Sultaniyya of Brusa. Then he came into the service of the excellent mawla Muhammad, known as Yakan, and became known for excellence in his circle.
At that time the emir in Qastamuni was Isma'il Beg, the son of the emir Jandar. It happened that at that time the madrasa of Muzaffar al-Din, located in the town of Tash Kubra in the environs of Qastamuni, became vacant. The emir Isma'il sent to the mawla Yakan and asked him to send him one of his students to teach at the said madrasa. The said mawla sent my grandfather, and he [the emir] assigned him thirty dirhams a day for the teaching post, and assigned him fifty dirhams a day from the revenue of Kurat al-Nuhas.
He lived there in ample comfort and abundant honour. Then, when Sultan Muhammad Khan took those lands from the hand of the aforementioned Isma'il Beg, my grandfather relinquished what had been assigned to him from the revenue of Kurat al-Nuhas, out of scrupulousness, because some innovations had entered into it.
When Sultan Muhammad Khan built the Eight Madrasas in Constantinople, the mawla Khayr al-Din, who had been the teacher of Sultan Muhammad, mentioned my late grandfather for teaching at one of the Eight Madrasas and praised him before him, for he had studied with my grandfather. So Sultan Muhammad Khan sent him an order to come to Constantinople and teach at one of the Eight Madrasas, but he did not comply with his order. So Sultan Muhammad Khan dismissed him from the said madrasa and said: If he comes to seek the post, I will compel him to stay in Constantinople. So my grandfather did not go.
One of the wealthy men of the town said: Perhaps the mawla has no money with which to help himself on the journey and is ashamed to ask. That man set aside ten thousand dirhams from his wealth and brought them to my grandfather and said: Use them for the journey. But he did not accept and said: It is not fitting for me to turn to any door other than the door of God, exalted is He, after this.
The mawla, may God have mercy on him, used to say: Our livelihood after this dismissal was wider and more comfortable than it had been in the days of the post. He said: Then the people of Kurat al-Nuhas came to him and took him to Kurat al-Nuhas after much entreaty and great insistence. He used to preach to the people every Friday.
He died there and was buried by the congregational mosque in the year eight hundred and seventy-nine. The mawla my father said: My father was a teacher at the madrasa in the said town for forty years. He was versed in the two sciences of rhetoric and renowned for excellence in them, and he had complete knowledge of the two usul, fiqh, tafsir and hadith. He was observant of the Law and scrupulous, pure outwardly and inwardly, guarding himself against idle talk and superfluous speech, and he frequently performed i'tikaf in the mosque, recited the Qur'an, kept voluntary fasts and supererogatory prayers.
Our master (Muhammad ibn) Qasim, known as Ibn al-Khatib Qasim, related to me from a Sufi man named 'Ali, one of the deputies of the shaykh 'Abd al-Rahim al-Marzifuni: The shaykh came to the city of Constantinople before the conquest on a donkey, with me walking in front of him, and entered it; and there he debated with some of the monks living in Aya Sufiyya until about forty men of them became Muslims, and they concealed their Islam for fear of their tyrant.
It is related that six persons of them were found at the conquest. When the said shaykh returned from Constantinople he passed by the town of Tash Kubra and said to his aforementioned servant: Here there is a learned teacher, observant of the Law, whom we must visit. He said: When we reached his door they said: He is in the mosque. So the shaykh went to the mosque and said to his servant: O 'Ali, take this ring — and he pointed to a ring on his finger — this is a man observant of the Law, and I fear he will reproach me on account of it. Then the shaykh went in to him with reverence and respect, kept company with him for a time, then took his leave and went. This is what I heard from the said mawla.
The mawla my father related from the mawla Khwaja Zada that he said: The mawla Khayr al-Din was living in the Sultaniyya of Brusa, and we used to listen to his lesson; some of the students of letters used to study with him. He was excellent in exposition and a man of verification and precision, so that we used to wait for the time of his lesson and take delight in listening to his exposition. He said: My young age prevented me from studying with him.