An algorithm can be accurate while its purpose raises religious concerns. Software can also fail despite a good aim. How should we assess such a system? Section 2.1.4 calls for considering test results and religious prescriptions together.
“2.1.4. The Role of Reason Alongside Revelation
Decisions in the field of AI must be based on a combination of rational analysis and religious prescriptions. No technological innovation may contradict the foundations of belief.”
Source: Islamic Code for the Use of AI, section 2.1.4.
Reflection and faith
In Qur’an 3:190–191, reflection on the creation of the heavens and earth accompanies remembrance of Allah. Verse 17:36 warns against following what you have no knowledge of. In AI, we can apply the verses’ general meaning by studying a system’s capabilities and checking the basis for its answers.
In the date palm pollination hadith, the Prophet Muhammad ﷺ acknowledged his listeners’ knowledge of a worldly matter. It illustrates the value of practical experience and gives no grounds for ignoring religious prescriptions. Sahih Muslim, 2363.
This provision appears in the Code’s section based on Maturidi creed. It helps to ask two questions: “Does the system work reliably?” and “Are its purpose and uses permissible?” Testing addresses the first. Religious review addresses the second. Both are needed.
Putting the provision into practice
Imagine an educational service that searches for material on Islamic history. The developer checks search accuracy. The teacher reviews the results. Appearing first in the results does not make a text reliable.
Another hypothetical example is software that schedules classes at a madrasa. The team checks that the timetable is workable and takes the school’s religious requirements into account. Saving time does not justify dropping those requirements.
One way to proceed:
- Describe the task, the data used and the actions that follow the software’s response.
- Gather test results and examples of errors. List religious questions separately.
- Take difficult questions to a qualified scholar and explain how the system works.
- Record the decision and review it again after significant changes.
These are practical recommendations. The provision itself sets no reporting formats or deadlines. Teams can track features with a documented rationale as a share of the total, and count unresolved questions and recurring errors. These measures track the work. They do not determine the product’s status under Islamic law.
Where mistakes happen
“The algorithm is effective, so everything is permissible.” Accuracy does not tell us whether its purpose is permissible.
“The aim is good, so we can skip testing.” Good intentions do not prove reliability.
“If there’s doubt, it must be forbidden.” First establish whether the issue is a software error, an inaccurate account of a rule or a disputed interpretation. Uncertainty cannot pass for a settled religious ruling.
FAQ
Does each setting need its own religious evidence?
The provision does not require this. Consider the setting’s purpose and consequences. Examine religious questions on their merits.
Can AI settle a dispute over conformity with the creed?
AI can help gather material. Its answer cannot replace a qualified religious review.
Disclaimer. This article is explanatory and does not constitute a fatwa. Distinguish the practical recommendations from the Code’s exact wording.



Ask a question or leave a comment on this article
Your pseudonym and comment will appear publicly as soon as you submit. Do not include your real name, contact details or other personal information.
Comment and request rules
Contact us about your comment