وله تآليف عديدة في أنواع شتى منها كتاب الدر المخلص من التقصي الملخص جمع فيه أحاديث الكتابين المذكورين وشرحه بشرح عظيم الفائد في أربع مجلدات سماه: كشف المغطا في شرح مختصر الموطا وشرح مختصر التفريع لابن الجلاب النيلي سماه: كفاية الطلاب في شرح مختصر الجلاب وله: نهاية الغاية في شرح الآية وأسئلة وأجوبة على آيات من القرآن. وله في العربية: العدة في إعراب العمدة عمدة الأحكام في الحديث أعربها إعرابا جامعا لوجوه الإعراب واللغة والاشتقاقات وسلك فيه مسلكا غريبا لم يسبق إلى مثله وهو آخر ما ألف وقرئ عليه مرارا وله كتاب التيسير في علمي البناء والتغيير في النحو
He has numerous works of various kinds, among them the Kitab al-Durr al-mukhallas min al-Taqassi al-mulakhkhas, in which he gathered the hadiths of the two books mentioned [?], and on which he wrote a commentary of great benefit in four volumes which he called Kashf al-mughatta fi sharh Mukhtasar al-Muwattaʾ; a commentary on the Mukhtasar al-Tafriʿ of Ibn al-Jallab al-Nili, which he called Kifayat al-tullab fi sharh Mukhtasar al-Jallab; and he has Nihayat al-ghaya fi sharh al-aya, and questions and answers on verses of the Quran. In Arabic he has al-ʿUdda fi iʿrab al-ʿUmda – the ʿUmdat al-ahkam on hadith – whose grammatical analysis he set out comprehensively, covering the aspects of inflection, lexicon and derivation; in it he took an unusual course in which no one had preceded him. It is the last thing he composed, and it was read to him several times. He has the Kitab al-Taysir fi ʿilmay al-binaʾ wa-l-taghyir on grammar,
وكتاب المسالك الجلية في القواعد العربية وشفاء الفؤاد في إعراب بانت سعاد وله شرح قواعد الإعراب لابن هشام وغير ذلك من التقاييد والتعاليق المفيدة وكتبه كلها في غاية الجودة والإتقان.
the Kitab al-Masalik al-jaliyya fi al-qawaʿid al-ʿarabiyya, and Shifaʾ al-fuʾad fi iʿrab Banat Suʿad; and he has a commentary on Qawaʿid al-iʿrab of Ibn Hisham, and other useful notes and glosses. All his books are of the utmost excellence and precision.
ولما حج آخر حجاته قال: هذه حجة الوداع فلما أحس بالمرض أمر بحفر قبره في بقعة مخصوصة فظهر مقطع جص لم يدفن فيه أحد قبله وأوصى أن يعتق عند قبره عبيد وأن يتصدق على الفقراء بصدقة واسعة وكتب وصيته بيده وأخرج من ماله وصايا وتبرعات وصدقات وأوقافا نحو ثلاثين ألفا ووقف على الفقراء فرنا تصرف غلته عليهم في كل يوم وأعتق في حياته عدة عبيد وإماء وكان له خادم في الحرم تقرب به لخدمة الضريح النبوي وكان مطمئن النفس بلقاء الله عز وجل مستحضرا لما ينبغي استحضاره ولما دخل في السياق ذكرته: فقال: ما أنا بغافل رحمه الله تعالى ويشبه هذا الجواب ما وقع للشيخ تاج الدين الفاكهاني - لما حضرته
When he made the last of his pilgrimages he said: This is the farewell pilgrimage. When he felt the illness, he ordered his grave to be dug in a particular spot, and a section of gypsum appeared in which no one had been buried before him. He gave instructions that slaves be freed at his grave and that ample alms be given to the poor. He wrote his will with his own hand, and from his property he set aside bequests, donations, alms and endowments of about thirty thousand; and he endowed for the poor an oven whose revenue is spent on them every day. In his lifetime he freed a number of male and female slaves. He had a servant in the Sanctuary through whom he sought nearness to God by the service of the Prophet's tomb. He was at peace in himself about meeting God, Mighty and Majestic, keeping in mind what ought to be kept in mind. When he entered the death throes I reminded him, and he said: I am not heedless, God Most High have mercy on him. Similar to this answer is what happened with the Shaykh Taj al-Din al-Fakihani – when death came
الوفاة - قال صهره الفقيه ميمون: تشهدت بين يديه ففتح الشيخ عينيه وأنشد:
upon him – his son-in-law the jurist Maymun said: I recited the testimony of faith before him, and the Shaykh opened his eyes and recited:
وغدا يذكرني عهودا بالحمى ... ومتى نسيت العهد حتى أذكرا؟
And he came reminding me of covenants at al-Hima ... and when have I forgotten the covenant, that I should be reminded?
توفي رحمه الله يوم الجمعة عاشر ربيع الأخير سنة تسع وستين وسبعمائة. مولده يوم الثلاثاء السادس من جمادى الأخيرة سنة ثلاث وتسعين وستمائة رحمه الله تعالى.
He died, God have mercy on him, on Friday, the tenth of Rabiʿ al-Akhir of the year 769. His birth was on Tuesday, the sixth of Jumada al-Akhira of the year 693, God Most High have mercy on him.