Abu Bakr ibn Mas'ud ibn Ahmad al-Kasani, 'Ala' al-Din, Malik al-'Ulama'.
Author of the book al-Bada'i'.
He studied jurisprudence under 'Ala' al-Din Muhammad ibn Ahmad ibn Abi Ahmad al-Samarqandi.
He married his daughter Fatima the jurist, because he had written a commentary on the book al-Tuhfa by this al-Samarqandi and named it al-Bada'i', and he made it his daughter's dower. So the jurists of the time said: He commented on his Tuhfa and [he] married him to his daughter!
He came to Aleppo as an envoy from the ruler of Rum to Nur al-Din al-Shahid, who appointed him to the teaching post of al-Halawiyya in place of al-Radi al-Sarakhsi after the latter's dismissal.
He also composed the book al-Sultan al-Mubin fi Usul al-Din.
Al-Kasani had standing, service, courage and generosity.
Ibn al-'Adim said: I heard the Qadi al-'Askar say: Al-Kasani came to Damascus, and the jurists came to him and asked him to debate with them on a question. They named many questions, and he kept saying: So-and-so and so-and-so of our school held that view. He went on like this until they could not find a question that had not been held by one of the followers of Abu Hanifa. So the gathering broke up and they did not debate with him.
Among what was found and copied of his poetry on the back of a copy of the book al-Bada'i':
I have outstripped the world to the heights, with sound thought and lofty resolve,
And through my wisdom the light of guidance has shone in nights made dark with error;
The deniers wish to extinguish it, but God refuses except to complete it.
Ibn al-'Adim said: I heard Diya' al-Din Muhammad ibn Khamis al-Hanafi say: I was present with al-Shaykh al-Kasani at his death. He began reciting Surat Ibrahim until he reached His words, Exalted is He: {God makes firm those who believe with the firm word in the life of this world and in the Hereafter}. His soul departed as he finished His words: {and in the Hereafter}.
He was buried inside the Maqam of Ibrahim al-Khalil outside Aleppo.
He died on Sunday, the tenth of Rajab, in the year 587, in Aleppo.
I say: This is the author of al-Bada'i', not Ahmad ibn Muhammad al-Ghaznawi mentioned earlier, as I pointed out. And God knows best.