al-Shafii

Died
204 AH
Born in
Gaza

Abu Abd Allah Muhammad ibn Idris al-Shafii (150–204 AH / 767–820 CE) was an Arab jurist, traditionist, and the eponym of the Shafi'i school of Islamic jurisprudence, renowned for establishing foundational principles of legal theory (usul al-fiqh) .

Lineage and Early Life

He was Muhammad ibn Idris ibn al-Abbas ibn Uthman ibn Shafi ibn al-Sa'ib ibn Ubayd ibn Abd Yazid ibn Hashim ibn al-Muttalib ibn Abd Manaf al-Qurashi al-Muttalibi . His lineage joined that of the Prophet Muhammad ﷺ at Abd Manaf, and his mother belonged to the Azd tribe . He was born in Gaza in 150 AH (767 CE)—the year in which Abu Hanifah died—though variant reports mention Ascalon, Yemen, or Mina .

His father died while he was an infant, and his mother brought him to Mecca when he was two years old (another report states ten years old) to preserve his paternal ties . He memorized the Quran by the age of seven and mastered the Muwatta of Malik ibn Anas by the age of ten . In his youth, he lived among the desert tribe of Hudhayl for roughly ten years, acquiring deep expertise in pure Arabic grammar, rhetoric, and classical poetry . He studied jurisprudence in Mecca under its mufti, Muslim ibn Khalid al-Zanji, who authorized him to issue legal rulings (fatwas) when he was fifteen years old (or according to another report, under twenty) .

Education and Public Career

Al-Shafii traveled to Medina to study under Malik ibn Anas, reciting the Muwatta to him from memory and remaining with him until Malik's death . Among his other prominent teachers were Sufyan ibn Uyaynah, Ibrahim ibn Sad al-Zuhri, Abd al-Aziz al-Darawardi, Fudayl ibn Iyad, and his uncle Muhammad ibn Shafi .

He subsequently took up an administrative post in Najran in Yemen . His tenure provoked local opposition, and he was accused before the Abbasid caliph Harun al-Rashid of aiding an Alid rebellion and seeking political power . In 184 AH (800 CE), at the age of thirty, he was brought in iron shackles to the caliph at al-Raqqah alongside Alid prisoners, nine of whom were executed . The jurist Muhammad ibn al-Hasan al-Shaybani intervened on his behalf, and al-Shafii defended himself eloquently, securing the caliph's pardon and monetary favor .

In Baghdad, al-Shafii engaged closely with Muhammad ibn al-Hasan, transcribing a large volume of his writings and debating the legal doctrines of the Iraqi school of legal reasoning (Ahl al-Ra'y) . He returned to Mecca, then visited Baghdad again in 195 AH (810–811 CE), where he taught and articulated his "Old School" (al-qawl al-qadim), authoring al-Risala (The Epistle) on legal theory at the request of the traditionist Abd al-Rahman ibn Mahdi . In 199 AH (814–815 CE), he relocated to Egypt, residing with Abd Allah ibn Abd al-Hakam . There he established his "New School" (al-qawl al-jadid), revising many of his previous legal positions and compiling his extensive legal compendium Kitab al-Umm (The Mother Book) .

His prominent students in Iraq included Ahmad ibn Hanbal, Abu Thawr, al-Hasan ibn Muhammad al-Za'farani, and al-Husayn ibn Ali al-Karabisi . In Egypt, his teachings were transmitted primarily by al-Buwayti, al-Muzani, al-Rabi ibn Sulayman al-Muradi, Harmalah ibn Yahya, and Yunus ibn Abd al-A'la .

Standing and Scholarly Reception

Al-Shafii was widely praised for his synthesis of the traditionist school (Ahl al-Hadith) and the jurists of systematic reasoning (Ahl al-Ra'y), establishing scriptural hermeneutics and the authoritative rank of prophetic traditions in jurisprudence . Ahmad ibn Hanbal remarked: "Al-Shafii was like the sun to the world and like well-being to people," and noted that hadith scholars remained indebted to his legal reasoning . Abu Ubayd al-Qasim ibn Sallam similarly stated that he had never seen anyone more complete in intellect and learning than al-Shafii .

Death

Al-Shafii died in Egypt on the last day of Rajab in 204 AH (January 820 CE)—with another report mentioning the month of Rabi al-Awwal—at the age of fifty-four (or according to Ibn Zabr, fifty-two) . He was buried at sunset in al-Fustat, where his shrine remains well known .

Answer updated

List of Works

  • al-Sunan al-Ma’thura is a collection of legal hadiths transmitted through an exclusively Egyptian chain of transmission. Assembled as a compact single volume, the text preserves the specific traditions received through al-Muzani and has historically been divided into four or seven parts in classical audition records.

  • Musnad al-Shafii is a compilation of prophetic and companion hadiths related with chains of transmission, extracted from various foundational legal treatises such as Kitab al-Umm, al-Mabsut, and al-Risalah. The collection gathers narrations under headings derived from these source writings rather than organizing them systematically by narrator or standard legal chapters.

  • Musnad al-Shafi'i – Tartib Sanjar is a thematic rearrangement of the hadith narrations extracted from treatises such as Kitab al-Umm. It restructures the previously unordered reports into clear topical chapters to resolve issues of repetition and ease of consultation, accompanied by a synthesized multi-volume commentary.

  • Musnad al-Shafii (Tartib al-Sindi) is a systematic reorganization of the hadiths of the Musnad according to standard chapters of Islamic jurisprudence. Completed in 1230 AH (1815 CE) to facilitate locating narrations, the work removes identical duplicate transmissions, opens with topics of faith and knowledge, and supplies textual corrections and notes.

  • Ikhtilaf al-Hadith is a treatise dedicated to the methodology of resolving apparent contradictions between authentic Prophetic traditions. Focusing on substantive legal topics, the work establishes a systematic framework for navigating conflicting texts through reconciliation, abrogation, and textual preference.