- The Arab and Islamic World
What are the four sources of Islamic law?
In Sunni Islamic jurisprudence, scholars derive rulings from four primary sources: the Quran (the divine revelation), the Sunnah (the Prophet Muhammad's practiced tradition and recorded sayings), ijma (the consensus of legal scholars), and qiyas (analogical reasoning). Developed systematically by scholars like al-Shafi'i by 820 CE, these four roots guide jurists when addressing practical questions of daily life.
The topic explained
The four sources of Islamic law and how scholars use them
In Islamic legal theory, known as usul al-fiqh (roots of jurisprudence), jurists do not invent rules. Instead, they derive rulings from textual and rational evidence. The first and supreme source is the Quran, preserved in the 7th century as the direct word of God. When the Quran does not give an explicit instruction, scholars turn to the second source: the Sunnah, the model behavior, rulings, and verified statements (hadith) of the Prophet Muhammad.
When neither text addresses a novel situation directly, scholars look to ijma (scholarly consensus). If the recognized jurists of a generation unanimously agreed on an interpretation, that consensus became binding. If no consensus existed, jurists applied qiyas (analogical reasoning). By qiyas, a scholar matches a new situation to an established rule by identifying a shared underlying reason (illah). For instance, scholars applied the Quranic ban on grape wine to date wine and modern intoxicants because both share the property of inebriation.
Why multiple legal schools developed and coexisted
Between the 8th and 9th centuries, major regional centers of learning produced distinct traditions of jurisprudence. Four enduring Sunni schools (madhhabs) emerged, named after their foundational teachers: the Hanafi school (founded by Abu Hanifa, d. 767 in Kufa), the Maliki school (Malik ibn Anas, d. 795 in Medina), the Shafi'i school (Muhammad ibn Idris al-Shafi'i, d. 820 in Cairo), and the Hanbali school (Ahmad ibn Hanbal, d. 855 in Baghdad).
These schools coexisted because each recognized the sincere independent reasoning (ijtihad) of the others. Differences arose from method rather than theology. Malik favored the living communal practices of Medina, where the Prophet had lived and governed. Abu Hanifa relied heavily on legal analogy and judicial discretion in the cosmopolitan trading cities of Iraq. Al-Shafi'i established strict textual hierarchies for hadith authenticity, while Ibn Hanbal prioritized prophetic narrations over human analogy. Because all four respected the same foundational texts, Sunni Islam viewed them as valid alternative paths.
A concrete legal dispute: what breaks ritual purity
A clear example of how different methodologies produced different rulings appears in ritual purity (wudu) before prayer. Surah an-Nisa 4:43 instructs Muslims to purify themselves if they 'have touched women' and cannot find water.
Shafi'i jurists read the Arabic verb 'laamastum' literally: any skin-to-skin contact between an unrelated adult man and woman breaks ritual ablution. Hanafi jurists cross-referenced this verse with hadith narrations showing the Prophet touching his wife Aisha's foot while praying at night; they concluded that the verse refers specifically to intimate physical contact, meaning an accidental brush of hands does not invalidate prayer. Both schools used the Quran and Sunnah, but their differing hermeneutical rules yielded distinct practical obligations.
Islamic Jurisprudence: Sources, Schools, and Rulings
For 11th-grade history and social studies students. Read each question carefully and write your answers in complete sentences based on historical evidence.
Free, no sign-up. The answer key prints on the second page. Regenerating a new worksheet on the same topic needs a free account.
Identify the four primary sources of Sunni Islamic jurisprudence in order of authority.
Name the scholar who died in Cairo in 820 CE and systematically defined the relationship between these four legal sources in his work 'al-Risala'.
Explain how scholars used qiyas (analogy) to extend the Quranic prohibition on grape wine to other substances.
Why did the Maliki school in 8th-century Medina place special emphasis on the living customs of its local community?
Contrast the Hanafi and Shafi'i interpretations of Quran 4:43 regarding whether physical contact with the opposite sex invalidates ritual ablution (wudu).
Document analysis: A 10th-century jurist writes, 'Where the texts are silent, human reason must build a bridge, but the bridge must rest on pillars embedded in revelation.' Explain how this statement reflects the function of qiyas.
Common questions
Is Sharia the same thing as fiqh?
No. Sharia refers to the divine, immutable moral and legal principles revealed by God. Fiqh refers to the human, fallible effort of scholars to understand and extract practical laws from those principles. Fiqh can change with time and circumstance, whereas Sharia represents the ideal standard.
Are the four Sunni schools of law hostile to one another?
Historically, no. While scholars engaged in fierce academic debates, all four schools recognized each other as orthodox and legally valid. In major cities such as Mamluk Cairo, mosques and legal colleges (madrasas) maintained appointed judges and professors from all four schools simultaneously.
How do Shia sources of law differ from Sunni sources?
Shia jurisprudence (primarily the Ja'fari school) relies on the Quran and the Sunnah, but its collection of Sunnah includes the sayings and actions of the Twelve Imams along with the Prophet. Additionally, Shia legal theory replaces qiyas with aql (independent human intellect and rational deduction).
Can an individual Muslim switch between legal schools?
Yes. While historically families or regions predominantly adhered to one school (such as the Maliki school in North Africa or the Hanafi school across the Ottoman Empire), individual Muslims often consult scholars of different schools or adopt rulings from another school in cases of hardship.

Still have a question? Ask Lessi
Any question about this subject. Lessi answers right here, step by step.
Try asking
Asking needs a free account; your question is kept while you sign up. Answers are written by AI and can contain mistakes. Lessi doesn’t give medical or legal advice.
Learn it with a teacher
Learn this topic live with Lessi
Lessi, the AI teacher, explains it out loud on a board, with short quizzes, at your pace. The first 60 minutes are free.