The classical rejection of analogy (qiyas) is associated with the Zahiri school of Dawud ibn Khalaf and Ibn Hazm, with the early Mu'tazili al-Nazzam, and, in a different way, with the Twelver Shi'a jurists, who replaced it with reason ('aql). Most of the early schools accepted it, though Ahmad ibn Hanbal and many early hadith scholars used it only when necessary.
- Rejected it: Dawud al-Zahiri (d. 270 AH), Ibn Hazm (d. 456 AH) and the Zahiri school; al-Nazzam (d. about 220 AH) among the Mu'tazila; the Imami Shi'a.
- Accepted it with limits: Ahmad ibn Hanbal, who used it where no text or Companion's ruling existed.
- Accepted it fully: Abu Hanifa, Malik and al-Shafi'i, with different conditions.
- Their main objection: the texts are complete and human opinion cannot add to them (Qur'an 5:3, 16:89).
Introduction
Analogy is the fourth of the classical sources of law, and most Muslims have always accepted it. Yet a number of serious scholars did not, and their reasons help to explain the structure of the whole science. This answer names who rejected it, in what form, with what evidence, and what the majority replied.
It also corrects a common simplification. 'Rejecting qiyas' did not mean rejecting reasoning. The Zahiris reasoned from the wording of texts, the Imamis reasoned from the intellect, and each had a way to deal with new cases.
What qiyas is
Qiyas is the extension of a ruling from a case in the texts (asl) to a new case (far') because they share the same effective cause ('illa). The standard example is wine: the Qur'an prohibits it, the cause is intoxication, and so other intoxicants are prohibited. The Prophet (saw) himself used analogical argument. When a man complained that his wife had given birth to a dark child, the Prophet (saw) asked if he had red camels, and whether any were grey, and from where the colour came; the man said it might be an ancestral strain, and the Prophet (saw) said that perhaps this was also an ancestral strain (Sahih Muslim 1500, narrated by Abu Huraira (ra); also in Sahih al-Bukhari). He also compared the Hajj done on behalf of an old father to the repayment of a debt, in a report found in Sahih al-Bukhari and Sahih Muslim.
The Zahiris
The Zahiri school, founded by Dawud ibn Khalaf al-Isfahani (d. 270 AH) in Baghdad and given its fullest defence by Ibn Hazm of Cordoba (d. 456 AH) in al-Ihkam fi Usul al-Ahkam and al-Muhalla, held that the law is found only in the apparent meaning (zahir) of the Qur'an and Sunna and in the consensus of the Companions. They rejected qiyas, istihsan, and the idea that the law has discoverable causes.
Their arguments were these. The religion is complete (5:3), and the Qur'an explains everything (16:89), so to add by analogy is to say that the Book is incomplete. Differences among the analogists show that qiyas does not give certainty, and the Qur'an says to refer disputes to Allah and the Messenger (4:59), not to opinion. The Companions are reported to have criticised the use of personal opinion, as in sayings attributed to Abu Bakr and Umar (ra), though Ibn Hazm's opponents argued these reports concern baseless opinion and not analogy from a text. And the claim that the law has hidden causes goes beyond what the texts state.
Ibn Hazm did not leave cases without answers. He used the principle that the original state of things is permission, so that anything not forbidden by a text is lawful, and that where a text covers a case by its general wording, the case is covered. He also used a form of argument he called dalil, such as an argument from the wording that the lesser is included in the greater, which he did not count as qiyas. The majority held that the difference was often one of name.
The Mu'tazila and the Imamis
Among the Mu'tazila, Ibrahim al-Nazzam (d. about 220 AH) is reported to have rejected qiyas, though most Mu'tazila accepted it, and Abu al-Husayn al-Basri defended it at length. The Twelver Shi'a (Imamis) rejected qiyas as it was used by the Sunni schools, since they hold that the law comes from the Qur'an and the teaching of the Imams, and they accept reason ('aql) as a source in its place. The Usuli school among them accepts reasoning from rational principles, while the Akhbari school rejected it more strictly. The Ibadi school, by contrast, accepts qiyas. These positions rest on different views of authority, and they are matters of principle between the communities.
The early Sunni critics of ra'y
It is also worth noting that early Sunni scholars were wary of unrestrained 'opinion' (ra'y). Ahmad ibn Hanbal is reported by his students to have preferred a weak hadith or a Companion's statement to analogy, and to have said that qiyas is used only in necessity, as one eats carrion only in necessity. Scholars of Hijaz and Madina criticised the Iraqi school for its use of hypothetical cases. The difference between the Hanafis (the 'people of opinion') and the 'people of hadith' was more about the threshold at which a report is accepted and the place of hypothetical cases than about whether reasoning from a cause is valid.
The majority reply
The majority cite the Qur'an (59:2) which tells those of vision to take lessons:
فَاعْتَبِرُوا يَا أُولِي الْأَبْصَارِ
So take warning, O people of vision. (Qur'an 59:2)
They say i'tibar includes reasoning from one case to another. They cite the Prophet's own analogies, the report of Mu'adh (ra) sent to Yemen who said he would judge by the Book, then by the Sunna, then by his own ijtihad (the chain of which is disputed, but its meaning accepted by most jurists), and the practice of the Companions. Abu Bakr (ra) is also reported to have been chosen for the caliphate by analogy with his appointment to lead the prayer in the Prophet's last illness, a reasoning often cited in the usul books. And practically, texts are limited and cases are not, so the law needs a method of extension.
What to take from this
A student should not treat this as a quarrel between those who use reason and those who do not. Each school has a theory of how to reach the ruling. The Zahiris trust the words more, the analogists trust the purposes more, and both rely on the Qur'an and Sunna as the root. If you follow a school, learn its approach, and read the other side's strongest argument.
وَمَا أُوتِيتُم مِّنَ الْعِلْمِ إِلَّا قَلِيلًا
And you have not been given of knowledge except a little. (Qur'an 17:85)
Conclusion
Analogy was rejected by Dawud al-Zahiri and Ibn Hazm, by al-Nazzam among the Mu'tazila and by the Imami Shi'a in a different form, while the main Sunni schools accepted it with differing conditions. The objectors argued from the completeness of the texts, and the majority from the practice of the Prophet (saw) and the Companions.
References
Qur'an 4:59, 5:3, 16:89, 17:85, 59:2
Sahih Muslim 1500 (the dark child; narrator Abu Huraira); Sahih al-Bukhari and Sahih Muslim, Book of Hajj (Hajj on behalf of a father)
Ibn Hazm, al-Ihkam fi Usul al-Ahkam
al-Shafi'i, al-Risala
al-Ghazali, al-Mustasfa
Wael Hallaq, A History of Islamic Legal Theories (Cambridge University Press, 1997)