No, Islamic scholarship does not treat benefit and harm as identical to right and wrong, although it gives them great weight, because the Qur'an recognises benefit in some forbidden things and still forbids them (2:219).
- The scholars divided on how humans know right and wrong: the Mu'tazila said reason alone can know good and evil, the Ash'aris said that only revelation defines them, and the Maturidis and many Hanbali scholars took a middle position.
- The tradition of the higher objectives of the law (maqasid al-shari'a), developed by al-Ghazali, al-'Izz ibn 'Abd al-Salam and al-Shatibi, holds that the law as a whole serves human welfare, but within limits fixed by revelation.
- The principle 'no harm and no reciprocating harm' is a recognised maxim based on a hadith, but benefit is judged by the law's own measure and is not decided by calculation alone.
- Ethical concerns not reducible to outcomes include justice, truthfulness, trust and the rights of the individual, which the texts protect even when a larger benefit seems to be at stake.
Introduction
The question asks whether the beneficial is the same as the morally right and the harmful the same as the morally wrong, which is, in philosophy, the question that divides utilitarian ethics from other approaches. Muslim thinkers have asked a closely related question in two fields: theology (kalam), which asks how we know what is good and bad, and the principles of jurisprudence (usul al-fiqh), which asks what role benefit (maslaha) plays in law. This answer sets out the positions, naming the scholars who held them.
The short answer is that the tradition treats the two as closely connected but not the same. Benefit and harm are among the most important signs of what the law intends, but they are not the final test of what is right.
The Qur'an and benefit
The Qur'an often speaks of benefit and harm. Of wine and gambling it says: 'In them is great sin and some benefits for people, but their sin is greater than their benefit' (2:219). This verse acknowledges that these things bring some benefit, and says that they are still prohibited, since the sin outweighs it. Two points follow. Benefit is a real consideration, and it is weighed against harm. And the weighing is done by revelation and not left to the individual, since the verse itself states the result.
Another verse asks: 'Is the one who knows equal to the one who does not know?' (39:9), and the Prophet (saw) is described as one who 'makes lawful for them the good things and forbids them the bad' (7:157). The words tayyibat and khaba'ith in this verse mean the good and the vile, and scholars such as al-Razi in his commentary note that this includes what is pleasant or wholesome and what is repulsive or harmful. The hadith 'There is to be no harm and no reciprocating harm' (la darar wa la dirar) was recorded by Ibn Majah and Ahmad, and al-Nawawi included it in his forty hadith, saying that it has several chains that strengthen each other. Jurists derived from it a maxim that harm must be removed, and it is among the five great legal maxims.
Yet the Prophet (saw) also said: 'The Fire is surrounded by desires and Paradise is surrounded by hardships' (Sahih Muslim), which warns that what is pleasant or convenient may be wrong, and what is hard may be right.
How do we know what is good and evil?
Three main views arose. The Mu'tazila, represented by Qadi 'Abd al-Jabbar in al-Mughni and Sharh al-Usul al-Khamsa, held that actions are good or evil in themselves and that human reason can know this, so that justice and truth-telling are good and wrongdoing is evil, before and without revelation. For them God must act for the benefit of His creatures.
The Ash'aris, following Abu al-Hasan al-Ash'ari, al-Juwayni and al-Ghazali, held that good and evil are defined by the divine command, and that reason alone cannot establish obligation or reward and punishment. Al-Ghazali in al-Mustasfa wrote that benefit (maslaha) is understood as preserving the aims of the law, and not whatever people find beneficial. Their purpose was to preserve the idea that Allah is not bound by any standard outside Himself. They also noted the Qur'an's statement that Allah does not punish until a messenger is sent (17:15).
A third view is that of the Maturidis, following Abu Mansur al-Maturidi, and of many Hanbali scholars such as Ibn Taymiyya and Ibn al-Qayyim. They held that actions have real qualities of goodness or harm that reason can often perceive, and that revelation confirms and completes this knowledge, and that reward and punishment depend on revelation. Ibn al-Qayyim, in Miftah Dar al-Sa'ada, argued that the law's commands are full of wisdom and benefit, and that the Qur'an's repeated giving of reasons shows this. This view gives benefit and harm a real role in ethics while keeping revelation as the authority.
Benefit in jurisprudence
In the law, scholars developed the idea of the higher aims of the law. Al-Ghazali listed five necessities to be protected: religion, life, intellect, lineage and property. Al-'Izz ibn 'Abd al-Salam, in Qawa'id al-Ahkam fi Masalih al-Anam, wrote that the whole law is about securing benefit and preventing harm, whether in this world or the next. Al-Shatibi, in al-Muwafaqat, built a full theory of the law's purposes, and argued that these purposes are known by studying the texts as a whole.
The schools differ on how far a benefit not mentioned in the texts (maslaha mursala) may be used. The Maliki school and many Hanbalis accept it with conditions: that it is real and not imagined, general and not for private gain, and that it does not conflict with a text. The Shafi'is generally prefer to derive such judgments through analogy (qiyas), and the Hanafis use juristic preference (istihsan) for a similar purpose. The most extreme view, attributed to the Hanbali jurist Najm al-Din al-Tufi, was that benefit can take priority over a text in matters of social dealings, and most scholars rejected it. The common ground is that benefit is a guide for the law and a tool for interpretation, and is not a ground for overriding clear texts.
Contemporary scholars such as Yusuf al-Qaradawi, in works on the jurisprudence of priorities, and Tahir ibn 'Ashur, in Maqasid al-Shari'a al-Islamiyya, give benefit a larger place in new questions, but they too insist that it be measured by the law's objectives.
Why the two are not simply the same
There are practical reasons for the distinction. The first is that benefit is difficult to measure, and people often judge it by their own interest. The Qur'an observes: 'It may be that you dislike a thing while it is good for you, and it may be that you love a thing while it is bad for you, and Allah knows while you do not' (2:216). The second is that some rights are owed to a person independently of the effect on others, such as the protection of life and honour. The Prophet (saw) said in his farewell sermon that blood, wealth and honour are sacred (Sahih al-Bukhari and Sahih Muslim). The third is that acts of worship and truthfulness have value that is not reduced to their outcome.
Philosophers who criticise outcome-based ethics make similar points about justice to individuals, and Muslim scholars would agree with this critique while also pointing out that the law gives harm and benefit great weight, which sets it apart from approaches that ignore consequences.
Conclusion
Benefit and harm are important in Islamic ethics and law, and the scholars of the objectives of the law gave them a central place, but they are weighed within the framework of revelation, and the Qur'an says that benefit may be present in a thing that is still forbidden. The theologians differed on whether reason can know good and evil without revelation, and the jurists differed on how far unmentioned benefits may be used, but none identified right with whatever is useful.
References
Qur'an: 2:216, 2:219, 7:157, 17:15, 39:9
Sahih Muslim: the Fire is surrounded by desires; Sahih al-Bukhari and Sahih Muslim: the farewell sermon
Ibn Majah and Musnad Ahmad: 'no harm and no reciprocating harm' (hasan through its chains, per al-Nawawi's Forty Hadith)
Qadi 'Abd al-Jabbar, Sharh al-Usul al-Khamsa
Al-Ghazali, al-Mustasfa
Al-'Izz ibn 'Abd al-Salam, Qawa'id al-Ahkam fi Masalih al-Anam
Al-Shatibi, al-Muwafaqat
Ibn al-Qayyim, Miftah Dar al-Sa'ada
Tahir ibn 'Ashur, Maqasid al-Shari'a al-Islamiyya