The learned and excellent shaykh, the lofty and perfect imam, the overflowing sea, the splendid scholar, learned in the branches and the principles, combiner of the rational and the transmitted sciences, the chief judge Abu al-'Abbas Ahmad ibn Ibrahim ibn 'Abd al-Ghani ibn Ishaq al-Saruji, may God have mercy on him.
He studied fiqh under the chief judge Sadr al-Din Abu al-Rabi' Sulayman, and under the shaykh, the imam, the most learned Sadr al-Din Abu 'Abd Allah Muhammad ibn 'Abbad al-Khilati; both of them studied fiqh under the shaykh, the imam Jamal al-Din al-Hasiri, and he took from the shaykh, the judge, the imam Fakhr al-Din Qadi Khan, from the ascetic imam, the jurist Abu Ishaq Ibrahim ibn Isma'il al-Saffar, from his father Isma'il ibn Ahmad al-Saffar, from Abu Ya'qub al-Sayyari, from Abu Ishaq al-Nawqadi, from Abu Ja'far al-Hinduwani, from Abu Bakr al-Iskaf, from Muhammad ibn Salama, from Abu Sulayman al-Juzajani, from Muhammad, from Abu Hanifa, may God have mercy on them.
He studied fiqh under Abu al-Tahir Ishaq ibn 'Ali ibn Yahya, and became related to him by marriage.
Those who studied fiqh under him include the amir 'Ala' al-Din 'Ali ibn Balaban ibn 'Abd Allah al-Farisi, and the excellent master 'Ala' al-Din 'Ali ibn 'Uthman ibn Mustafa ibn Ibrahim al-Maridini, known as Ibn al-Turkumani.
He held the judgeship in Egypt after the chief judge Mu'izz al-Din Nu'man ibn al-Hasan. When the Sultan al-Malik al-Mansur Lajin became sultan, he dismissed him, replacing him with the chief judge Husam al-Din. When Lajin was killed he was restored to office, and he remained until the Sultan al-Malik al-Nasir came from al-Karak and dismissed him, replacing him with the chief judge Shams al-Din Muhammad al-Hariri.
He was an excellent imam without peer, without equal in his time, a head in fiqh and the principles, a master in the rational and the transmitted sciences; the leadership of learning came to rest with him in his day. He composed well-received works, gave fatwas and taught; students used to travel to him, and requests for fatwas came to him from the regions of the earth.
He composed a commentary on al-Hidaya which he named al-Ghaya, known as Ghayat al-Saruji; in it he reached the book of oaths and was not granted its completion. Then the excellent master, the chief judge Sa'd al-Din Sa'd ibn Shams al-Din al-Diri, applied himself to completing it, and was granted its completion in the course of the eighth century. Sa'd al-Din died in the year eight hundred and sixty-eight.
Al-Saruji died in the year seven hundred and seventeen and was buried in al-Qarafa next to the dome of the imam al-Shafi'i, may God the Exalted have mercy on them; his birth was in the year six hundred and thirty-seven.
Al-Saruj, with fatha on the unpointed sin and damma on the ra': a town in the districts of Harran in the lands of al-Jazira; and Harran is a city in Jazirat Ibn 'Umar; from it came al-Hasan ibn Muhammad ibn Abi Ma'shar. And in al-Qamus: Saruj is a city near Harran.
In al-Jawahir al-Mudiyya he said: I studied fiqh under a group (of imams who had studied fiqh under the chief judge Abu al-'Abbas Ahmad al-Saruji), among them the three imams Fakhr al-Din Abu 'Umar and 'Uthman ibn Mustafa ibn Ibrahim and his two sons Abu al-'Abbas Ahmad ibn 'Uthman and Abu al-Husayn 'Ala' al-Din 'Ali ibn 'Uthman al-Maridini, known as Ibn al-Turkumani.
The chain of Ahmad al-Saruji in fiqh: al-Saruji read with the imam Sadr al-Din Sulayman, from the shaykh Jamal al-Din Mahmud al-Hasiri, from the imam Fakhr al-Din al-Hasan ibn Mansur Qadi Khan, from the imam Zahir al-Din al-Hasan ibn 'Ali ibn 'Abd al-'Aziz al-Marghinani, from the imam Siraj al-Umma Burhan al-Din 'Abd al-'Aziz ibn Maza and Shams al-Din Mahmud, the grandfather of Qadi Khan, both from Shams al-A'imma al-Sarakhsi, from the imam Abu Muhammad 'Abd al-'Aziz al-Halwani, from Abu 'Ali al-Husayn ibn Khidr al-Nasafi, from the imam Abu Bakr Muhammad ibn al-Fadl al-Bukhari, (from 'Abd Allah al-Sabadhmuni), from Abu 'Abd Allah Abu Hafs al-Saghir, from his father Abu Hafs al-Kabir, from Muhammad ibn al-Hasan, from the imam Abu Hanifa. Thus my chain in fiqh is connected to the greatest imam Abu Hanifa, and praise be to God the Exalted. End of the words of 'Abd al-Qadir ibn Muhammad in al-Jawahir al-Mudiyya.
He has other works, among them: Kitab Adab al-Qada' and al-Fatawa al-Sarujiyya.
Ibn Qutlubugha mentioned in al-Tarajim: Shams al-Din Abu al-'Abbas Ahmad ibn Ibrahim al-Saruji studied fiqh under al-Sadr Sulayman ibn Abi al-'Izz and Najm al-Din Abu Tahir Ishaq ibn 'Ali ibn Yahya; he held the judgeship in the Egyptian lands, and composed a commentary on Kitab al-Hidaya which he named al-Ghaya, in which he reached the book of oaths, in the amount of six thick volumes.
He died in the Madrasa al-Suyufiyya in Cairo, on Thursday, the twelfth of Rajab in the year seven hundred and twenty.
Al-Suyuti mentioned in Husn al-Muhadara: then the commentary on al-Hidaya from the oaths onward, al-Diri's completion for al-Saruji, by the chief judge Sa'd al-Din son of the chief judge Shams al-Din al-Diri.
I saw in the margin of al-Jawahir al-Mudiyya, in the handwriting of the shaykh Nur al-Din 'Ali ibn 'Umar al-Baynuni al-Hanafi al-Shadhili, that he said: I saw one part of fifty parts of the Sharh al-Quduri by the imam al-Saruji Abu al-'Abbas Ahmad, this one: a part the size of half a Qur'an codex, from the book of purification to the chapter on dry ablution, up to the question of performing ablution with date-water; he cited the hadith of 'Abd Allah ibn Mas'ud and the affair of the Night of the Jinn, and his ablution, God bless him and grant him peace, with date-water. He died leaving forty-nine parts, and the fiftieth part was completed by the shaykh Sa'd al-Din Ibn al-Diri, the shaykh of the Mu'ayyadiyya; so it reached me. End of quotation.
Al-Saruji mentioned in Kitab Adab al-Qada', quoting from the Waqi'at of 'Umar ibn Maza: if the judge knew of a person's right before being invested with the judgeship, he does not judge (by his knowledge) according to Abu Hanifa, contrary to the two. But if he came to know after being invested with the judgeship, in the city in which he is judge and in the session of the court, he judges in the rights of people, but does not judge in what is purely a right of God the Exalted, except in the case of a drunkard when he sees him in that state, for he gives him discretionary punishment, since that is a discretionary punishment and not a hadd. But if he came to know outside the session of the court, it falls under the disagreement which I mentioned in the first case.