What was al-Shāfiʿī's position on qiyās (analogy): did he reject it, how did he define and limit it in al-Risāla, and how does that relate to his rejection of istiḥsān?
The question rests on a mistaken premise. Al-Shāfiʿī (d. 204/820) did not reject qiyās (analogy, extending a ruling from a case the texts decide to a new case that shares its reason). He made it the only lawful form of independent reasoning, and what he rejected was istiḥsān (juristic preference), the method he associated with the Ḥanafīs of Iraq. The confusion is understandable: his treatise against istiḥsān, Ibṭāl al-istiḥsān, is a sustained attack on reasoning without a textual anchor, and he set strict limits on who may use analogy and when. But within those limits qiyās is, for him, obligatory. The schools that did reject qiyās as a source were the Ẓāhirīs, above all Ibn Ḥazm (d. 456/1064). The account below takes al-Shāfiʿī's own words in al-Risāla and al-Umm, then the critics on both sides.
1. Qiyās is ijtihād
In the chapter on qiyās in al-Risāla, al-Shāfiʿī's interlocutor asks whether qiyās and ijtihād are the same thing or two things. His answer is that they are two names for one meaning. He explains: for everything that befalls a Muslim, كل ما نزل بمسلم فقيه حكم لازم أو على سبيل الحقِّ فيه دلالة موجودة
(“everything that befalls a Muslim has a binding ruling, or there is evidence pointing to the right course in it”)1. Where the ruling is stated, it is followed; وإذا لم يكن فيه بعينه طُلِب الدلالة على سبيل الحق فيه بالاجتهاد والاجتهادُ القياسُ
(“and where it is not stated in so many words, the evidence for the right course is sought by ijtihād, and ijtihād is qiyās”)1.
The identification has a consequence. A scholar who reasons on a new case may only reason by analogy to what the texts already hold, so reasoning that is not analogy is not ijtihād at all. Al-Shāfiʿī's recurring image is the qibla: one who sees the Kaʿba faces it, and one who cannot see it must seek its direction by signs. In al-Umm he applies this directly to the sources: فَإِذَا كَانَا مَوْجُودَيْنِ فَهُمَا الْأَصْلَانِ وَإِذَا لَمْ يَكُونَا مَوْجُودَيْنِ فَالْقِيَاسُ عَلَيْهِمَا لَا عَلَى غَيْرِهِمَا
(“when the two [Book and Sunna] are found, they are the two roots; when they are not found, analogy is drawn on them and on nothing else”)2.
He was also explicit that analogy yields knowledge that is right only outwardly. The kinds of knowledge include وعلمك اجتهادٍ بقياسٍ على طلب إصابة الحق فذلك حق في الظاهر عند قياسه لا عند العامة من العلماء ولا يعلم الغيب فيه إلا الله
(“your knowledge by ijtihād through analogy, seeking to reach what is right: that is right outwardly according to his analogy, not for scholars generally, and only God knows its hidden truth”)1. That is why he accepts that qualified jurists may reach different results by analogy without any of them being blameworthy.
2. Its place in the order of proofs
Qiyās comes last, and only where the texts are silent. Al-Shāfiʿī compares it to tayammum (purification with earth), which is valid only when water cannot be had: يكون ما بعد السنة حجةً إذا أَعوَزَ من السنة
(“what comes after the Sunna is a proof only when the Sunna is lacking”)1. Near the end of al-Risāla he sets out the order for one who reasons: if he does not find the answer in the Book, he looks to the Sunna, and if he لم يجد سنة فبإجماع المسلمين فإن لم يكون إجماعٌ فبالقياس
(“does not find a Sunna, then to the consensus of the Muslims, and if there is no consensus, then to qiyās”)1.
Ibn Ḥazm, who rejected analogy, reports al-Shāfiʿī's position the same way: وقال الشافعي لا يجوز القياس مع نص قرآن أو خبر صحيح مسند فقط وأما عند عدمهما فإن القياس واجب في كل حكم
(“al-Shāfiʿī said analogy is not permitted where there is a Qurʾānic text or a sound connected report, and nothing else; where they are absent, analogy is obligatory in every ruling”)3. In the same passage he sets this against Abū Ḥanīfa's view that وقال أبو حنيفة الخبر المرسل والضعيف عن رسول الله ﷺ أولى من القياس
(“a report with a gap in its chain, or a weak report, from the Messenger of God takes precedence over analogy”)3. For al-Shāfiʿī, then, analogy yields only to a sound connected report, while for Abū Ḥanīfa it yields even to weaker ones. This is Ibn Ḥazm's report of the two positions.
3. Who may use it
Al-Shāfiʿī restricts analogy to the qualified: ولا يقيس إلا من جمع الآلةَ
(“none may use analogy except one who has gathered its tools”)1. He lists them: knowledge of the Book's rulings, its abrogating and abrogated verses, its general and particular. He adds that one may not use analogy حتى يكون عالماً بما مضى قبله من السنن وأقاويل السلف وإجماع الناس واختلافهم ولسان العرب
(“until he knows the Sunna before him, the sayings of the early generations, people's consensus and their disagreement, and the Arabic language”)1. He must also be sound of mind, able to distinguish what resembles what, and slow to speak before he is sure.
4. Kinds of analogy
Al-Shāfiʿī ranks analogies by strength. The strongest is the a fortiori argument: فأقوى القياس أن يحرِّم الله في كتابه أو يحرم رسول الله
(“the strongest analogy is that God in His Book, or His Messenger, forbids”)1 a small amount of something, so that a larger amount is known to be forbidden at least as much. The same works in the other direction for what is permitted: وكذلك إذا أباح كثير شئ كان الأقل منه أولى أن يكون مباحاً
(“likewise, if a great deal of a thing is permitted, a lesser amount has the better claim to be permitted”)1. His example is the hadith that God has forbidden thinking ill of a believer. Ill thought that is voiced is forbidden, so an open accusation is forbidden all the more.
Hassaan Shahawy's study of early Ḥanafī istiḥsān draws attention to this passage. He reads al-Shāfiʿī's broad notion of qiyās, which includes such reasoning from the stronger case, as essential for understanding what the Ḥanafīs later meant by istiḥsān.
5. What he rejected: istiḥsān
The Risāla's chapter on istiḥsān follows directly from the qibla image. Reasoning must aim at an existing target, a text, and reach it by signs. Hence وهذا يبين أن حراماً على أحد أن يقول بالاستحسان إذا خالف الاستحسانُ الخبرَ والخبرُ من الكتاب والسنة عينٌ يتأخَّى
(“this shows that it is forbidden for anyone to rule by istiḥsān where istiḥsān goes against the report; the report from the Book and Sunna is a target which”)1 the reasoner aims at, as the absent worshipper aims at the Kaʿba. Asked whether a man may say I deem it good without analogy, he replied: لا يجوز هذا عندي والله أعلم لأحد
(“in my view this is not permitted to anyone, and God knows best”)1.
His reasoning is that analogy is the only thing standing between scholarly judgement and anyone's opinion: جاز تعطيلُ القياس جاز لأهل العقولِ من غير أهل العلم أن يقولوا فيما ليس فيه خبر بما يحضرهم من الاستحسان
(“if analogy could be set aside, then intelligent people who are not scholars could say whatever istiḥsān occurs to them where there is no report”)1. And one who speaks ولو قال بلا خبر لازم وقياسٍ كان أقربَ من الإثم من الذي قال وهو غير عالم
(“without a binding report or an analogy would be closer to sin than one who speaks without being a scholar”)1. Al-Bayhaqī (d. 458/1066) preserves the principle in a sentence he quotes from him: وجهة العلم: الخبر اللازم والقياس بالدلائل على الصّواب
(“the way to knowledge is the binding report, and analogy by evidence to what is right”)4.
In al-Umm the same objection is put in terms of authority. One who reasons without a root sets himself up as a third source beside God and His Messenger: وَزَادَ قَائِلُ هَذَا وَاتِّبَاعُ نَفْسِك
(“and the one who says this has added: "and follow yourself"”)2. His treatise against istiḥsān also argues that rulings follow what is outward. A sale is valid even if the buyer secretly intends a crime with what he bought. The judge, like the Prophet, rules on what appears and leaves what is hidden to God.
6. The Ḥanafī reply
Al-Bayhaqī presents al-Shāfiʿī's complaint against the Iraqis as inconsistency. In his account, they فيقول بالقياس مرة، ويتركه بالاستحسان أخرى
(“uphold analogy at one time and abandon it for istiḥsān at another”)4. On his reading the cause was the Iraqis' readiness to accept weak or unknown reports from their own region.
The Ḥanafīs answered that al-Shāfiʿī had attacked a caricature. Al-Jaṣṣāṣ (d. 370/981) opens his chapter on istiḥsān by saying that opponents تَكَلَّمَ قَوْمٌ مِنْ مُخَالِفِينَا فِي إبْطَالِ الِاسْتِحْسَانِ حِينَ ظَنُّوا أَنَّ الِاسْتِحْسَانَ حُكْمٌ مِمَّا يَشْتَهِيه الْإِنْسَانُ وَيَهْوَاهُ
(“among our opponents spoke of invalidating istiḥsān because they thought istiḥsān was a ruling by what a person desires and wants”)5. They had not understood what the Ḥanafīs meant by the word. Shahawy traces how the Ḥanafīs then redefined istiḥsān inside the analogical system. Al-Dabūsī (d. 430/1039) defined it as acting on evidence that opposes a more obvious analogy, constructing it . Istiḥsān became a less obvious qiyās that wins over a more obvious one. On this account the later Ḥanafī theory accepted al-Shāfiʿī's premise that all sound reasoning is analogical, and contested only his label.
7. Those who did reject qiyās
The rejection of analogy belongs to the Ẓāhirīs. Ibn Ḥazm devotes a chapter of al-Iḥkām to it. He defines his opponents' qiyās as فالقياس عندهم هو أن يحكم لما لا نص فيه ولا إجماع بمثل الحكم فيما فيه نص أو إجماع لاتفاقهما في العلة التي هي علامة الحكم
(“ruling, in a case without a text or consensus, with the ruling of a case that has a text or consensus, because the two share the ratio that marks the ruling”)3. He names its leading holders as وهم جميع أصحاب الشافعي
(“all the followers of al-Shāfiʿī”)3, with groups of Ḥanafīs and Mālikīs. Elsewhere he says the proofs for rejecting it are many and plain: لأن البراهين على صحة قولنا في إبطال القياس كثيرة جدا واضحة
(“because the proofs that our view, the invalidity of analogy, is right are very many and clear”)3.
Al-Ghazālī (d. 505/1111), a later Shāfiʿī, opens his defence of analogy by sorting its deniers. Some Shīʿīs and Muʿtazilīs held it rationally impossible: وَقَدْ قَالَتْ الشِّيعَةُ، وَبَعْضُ الْمُعْتَزِلَةِ: يَسْتَحِيلُ التَّعَبُّدُ بِالْقِيَاسِ عَقْلًا
(“the Shīʿa and some Muʿtazilīs said that being bound to analogy is rationally impossible”)6. The Ẓāhirīs denied it on scriptural grounds: فَأَنْكَرَ أَهْلُ الظَّاهِرِ وُقُوعَهُ بَلْ ادَّعَوْا حَظْرَ الشَّرْعِ لَهُ
(“the Ẓāhirīs denied that it occurs, and indeed claimed that the law forbids it”)6. Against both he sets the Companions and the great majority of jurists. Al-Juwaynī (d. 478/1085) states the later Shāfiʿī view most strongly: القياس مناط الاجتهاد وأصل الرأي ومنه يتشعب الفقه
(“analogy is the pivot of ijtihād and the root of reasoned opinion, and from it law branches out”)7.
Aḥmad b. Ḥanbal (d. 241/855), asked about al-Shāfiʿī, is reported by al-Bayhaqī to have said حديث صحيح ورأي صحيح
(“sound hadith and sound reasoning”)4, in contrast to his verdicts on others. Al-Bayhaqī explains the compliment by al-Shāfiʿī's refusal to argue except from sound reports and analogy on them.
In short
| Who | Qiyās | Istiḥsān |
|---|---|---|
| Al-Shāfiʿī | The same as ijtihād; obligatory where Book, Sunna and consensus are silent; only for the qualified | Forbidden where it is reasoning without a text to aim at |
| Ḥanafīs (al-Jaṣṣāṣ, al-Dabūsī) | Accepted | Accepted, defined as a less obvious analogy or a stronger proof that overrides an obvious one |
| Ẓāhirīs (Ibn Ḥazm) | Rejected | Rejected |
| Later Shāfiʿīs (al-Juwaynī, al-Ghazālī) | The pivot of ijtihād, defended against Ẓāhirīs, Shīʿīs and some Muʿtazilīs | — |
My observations
These are tentative conclusions I have drawn from the sources. They are not positions stated by the cited authors.
- The question's premise probably comes from the treatise's title. Ibṭāl al-istiḥsān ((refuting istiḥsān)) attacks unanchored reasoning, and a reader meeting its arguments second-hand could take them as an attack on reasoning as such. The texts read point the other way: the treatise defends analogy as the only legitimate reasoning.
- Al-Shāfiʿī and Ibn Ḥazm share a premise and draw opposite conclusions. Both insist that a ruling must rest on revealed texts. Al-Shāfiʿī holds that analogy extends the texts and so is still following them. Ibn Ḥazm holds that it adds to them. The disagreement is over whether analogy is inside or outside the texts, not over the authority of the texts.
- The Ḥanafī reply largely conceded his framework. By redefining istiḥsān as a hidden analogy, as Shahawy shows for al-Dabūsī, the later Ḥanafīs argued within al-Shāfiʿī's terms. This may be his lasting influence on the debate.
Works cited
- الرسالة للشافعي, الشافعي
- الأم للشافعي - ط الفكر, الشافعي
- الإحكام في أصول الأحكام - ابن حزم, ابن حزم
- مناقب الشافعي للبيهقي, أبو بكر البيهقي
- الفصول في الأصول, أبو بكر الرازي الجصاص
- المستصفى, أبو حامد الغزالي
- البرهان في أصول الفقه, الجويني، أبو المعالي
- How Subjectivity Became Wrong: Early Hanafism and the Scandal of Istiḥsān in the Formative Period of Islamic Law (750–1000 CE), Hassaan Shahawy
Limits the answer states
- Al-Shāfiʿī's position is read in al-Risāla and al-Umm (Ibṭāl al-istiḥsān and the chapter on judging by the outward); his other works, such as Jimāʿ al-ʿilm, were opened but added nothing on this point.
- Abū Ḥanīfa's view on weak reports and analogy is given as Ibn Ḥazm reports it.
- The Ḥanafī reply rests on al-Jaṣṣāṣ's opening of his chapter and on Shahawy's account of al-Dabūsī; al-Dabūsī's own text was not read.
Kutubi’s research is written by Claude, an AI model made by Anthropic. AI can make mistakes: please check each quotation against the work it cites before relying on it.