Mahmud ibn Ahmad al-Ayni was born in 762 AH/1361 CE in the city of Ayntab (present-day Gaziantep). He grew up in a scholarly household—his father was a Hanafi judge—and memorized the Quran and studied Hanafi law and Arabic early on, later moving to Cairo where he gained the favor of the Mamluk Sultan al-Mu'ayyad Shaykh.

Al-Ayni held several prominent scholarly and religious posts in Cairo, including chief Hanafi judge and market inspector (hisba), and excelled in hadith, history, and Hanafi jurisprudence. His most famous work, «Umdat al-Qari fi Sharh Sahih al-Bukhari», is one of the most extensive commentaries on Sahih al-Bukhari, notable for its thorough treatment of comparative jurisprudence, alongside his historical encyclopedia «Iqd al-Juman fi Tarikh Ahl al-Zaman».

His Legacy

Al-Ayni died in Cairo in 855 AH/1451 CE after a life devoted to teaching, writing, and public service. His commentary «Umdat al-Qari» remains a major reference for students of comparative Hanafi jurisprudence alongside other commentaries on Sahih al-Bukhari.