Articles

Artificial Intelligence: An Assistant or a Mufti?
Author : Dr. Mufti Sa`eid Farhan
Date Added : 21-07-2025

Artificial Intelligence: An Assistant or a Mufti?

 

All praise is to Allah, who exalts whom He wills and abases whom He wills. Peace and blessings be upon the one who came with guidance, upon his pious family and companions, and upon those who follow his path until the Day of Judgment.

Among Allah’s mercies to creation is that He made the divine law He ordained for mankind suitable and guiding for every time and place. Islamic law necessitates the existence of scholars—the people of knowledge—to issue fatwas (religious rulings) and clarify the rulings of people’s dealings in all aspects of life. Allah says {what means}: "And We sent not before you except men to whom We revealed [Our message]. So ask the people of knowledge if you do not know." [An-Nahl/43]

As a result of progress, development, and astounding scientific leaps, humanity has reached what is now known as artificial intelligence (AI). The best definition of AI is that of Philip Janssen, who defined it as: "The science and engineering of machines with capabilities considered intelligent by human intelligence standards." [1]

Humans have reached a stage where machines serve them in all aspects of life—even in matters specific to religion and worship. This advancement has extended to the point where AI is being used to issue fatwas and provide religious guidance, effectively replacing human scholars in some cases.

The AI revolution has entered nearly every field—education, medicine, sports, commerce, and even religion. We now witness massive strides in AI applications, including its use in issuing Islamic legal rulings (fatwas).

Before discussing the ruling on using AI for fatwas, we must clarify the reality of fatwa-giving. Issuing a fatwa is not merely judging an action or incident; it is broader than that and consists of four pillars:

  1. The Mufti (the scholar issuing the fatwa)
  2. The Mustafti (the one asking the fatwa)
  3. The Incident in Question
  4. The Ruling

Each of these has specific conditions and aspects. Sometimes, the first three pillars exist, but the ruling does not—either because the issue requires further research or because the mufti refrains from answering for a valid reason. This is something no machine, no matter how advanced, can assess.

The Use of AI in Fatwas is of Two Types:

First: Using AI as a tool for the mufti, such as in drafting fatwas, researching juristic opinions from different schools of thought, or finding similar cases. This is akin to a mufti referencing books and specialized sources. This use is permissible and even beneficial, as it assists the mufti in research—provided it does not replace his direct engagement with primary sources.

Second: Using AI as a replacement for the mufti, entirely removing the human scholar and substituting him with a machine. This is where disagreement arises—between those who permit it and those who forbid it.

To resolve this disagreement, we must review the conditions of a mufti. Without delving into the arguments of those who permit or prohibit AI fatwas, the key issue is highlighting the obstacles preventing AI from validly issuing fatwas, derived from the conditions scholars have established for a mufti.

Obstacles Preventing AI from Issuing Fatwas:

1. A Foundational Obstacle (Usooli)
Scholars unanimously agree that the first condition for a mufti is that he must be:

  • A legally accountable (mukallaf) Muslim
  • Trustworthy (thiqqah)
  • Free from immorality and dishonorable traits
  • Sound in reasoning, precise in deduction, and alert

As Imam An-Nawawi stated:
"The mufti must be a legally accountable Muslim, trustworthy, safeguarded from sinful behavior and moral failings, intellectually competent, sound in mind, firm in thought, correct in reasoning and deduction, and vigilant." [2]

AI does not meet these conditions—it is not accountable (mukallaf), nor is it even a living being.

2. A Jurisprudential Obstacle (Ijtihadi)
Custom (urf) is a critical factor in fatwas. Sometimes, custom is the deciding factor between two equally valid opinions. Understanding people’s psychology, social habits, and societal norms is essential—something AI cannot grasp.

Imam Ahmad ibn Hanbal said:
*"A man should not appoint himself for fatwa-giving unless he has five qualities:

  1. Sincere intention (otherwise, his speech lacks divine light)
  2. Patience, dignity, and composure
  3. Strength in knowledge and understanding
  4. Self-sufficiency (or people will exploit him)
  5. Knowledge of people (their customs and conditions)"* [3]

How can a machine, no matter how data-filled, comprehend this?

3. A Spiritual Obstruction (Sulooki)
There is a fundamental difference between a machine and its creator—the Muslim scholar who fears Allah and seeks divine aid.

Imam Ash-Shatibi said:
"Knowledge was first in the hearts of men, then transferred to books—but the keys to it remain in the hands of scholars. A true scholar must know the foundations of his field, articulate its meanings, and understand its implications." [4]

He also emphasized:
"Books alone do not benefit a student without the guidance of scholars—this is an observable reality." [5]

A mufti connected to Allah, conscious of Him, undoubtedly receives divine support and openings (futuhat) in his rulings.

Imam Ash-Shams Ar-Ramli said:
*"Allah says {what means}: "And fear Allah, and Allah will teach you." (Al-Baqarah/282). It has been said: ‘No servant succeeds except by Allah’s grant.’ When this is rare, Allah mentions it only once in the Qur’an: "And my success is not but through Allah." (Hud/88). If you understand and act, Allah promises that whoever fears Him, He will grant light to his heart to comprehend and discern truth from falsehood: "O believers, if you fear Allah, He will grant you a criterion." (Al-Anfal/29). Thus, through taqwa (God-consciousness), knowledge increases."* [6]

How can such divine inspiration descend upon a lifeless machine?

Additional Considerations:

  • The duty of da’wah (calling to Islam) and personal advice from a mufti to the questioner plays a crucial role in the latter’s adherence and behavior—something AI cannot replicate.
  • Practical experiments have shown AI’s failure in correctly answering religious questions, especially in high-stakes rulings like divorce, where error is unacceptable.

We ask Allah, the Most High, to guide us to truth and correctness. Our final prayer is all praise is due to Allah, Lord of the worlds.


References:
[1] Mark Coeckelbergh, AI Ethics, trans. Hiba Abdulaziz Ghannam, p. 51.
[2] An-Nawawi, Adab al-Fatwa wal-Mufti wal-Mustafti, p. 19.
[3] Abu Ya’la, Al-‘Uddah fi Usul al-Fiqh, Vol. 5, p. 1599.
[4] Ash-Shatibi, Al-Muwafaqat, Vol. 1, p. 140.
[5] Ibid., Vol. 1, p. 148.
[6] Ash-Shams Ar-Ramli, Ghayat al-Bayan Sharh Zubd Ibn Raslan, p. 4.

 

The published article reflects the opinion of its author

Article Number [ Previous | Next ]

Read for Author




Comments


Captcha


Warning: this window is not dedicated to receive religious questions, but to comment on topics published for the benefit of the site administrators—and not for publication. We are pleased to receive religious questions in the section "Send Your Question". So we apologize to readers for not answering any questions through this window of "Comments" for the sake of work organization. Thank you.




Summarized Fatawaa

What is the ruling of Islamic Law on a person who abandons prayer after reaching puberty—is he required to make them up?

All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
 
Making up missed obligatory prayers is an Islamic duty just as performing them in their proper time is obligatory, and taking care of them takes precedence over performing voluntary prayers. This is established by the practice of our Supreme Prophet (peace and blessings be upon him) when the polytheists distracted him on the Day of the Trench from performing the Asr prayer, so he made it up afterward, as well as the Hadith: "Pay Allah what is due to Him, for Allah is most deserving of fulfillment." (Recorded by Al-Bukhari)
 
Furthermore, it is valid to make up missed prayers at any time.
 
Whoever has missed a number of prayers and does not know their exact count, it is obligatory upon them to sincerely repent and exert their utmost effort to estimate their number. If they are unable to determine the exact count, they should base it on what is most probable according to their best judgment. They should then make them up gradually; if one performs one missed prayer alongside every current obligatory prayer, the matter becomes easy and manageable, and with the passage of time, one will complete what is owed, Allah willing. And Allah Almighty knows best.

There are olive trees within the precincts of the mosque, and my father covers the costs of electricity, water, and other needs of the mosque. Is it permissible for him to take the olive harvest?

All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
If trees and fruit-bearing crops are planted in a mosque for the mosque itself, they may only be spent on the mosque’s interests. If they were planted for the public way (musabbalah), that is, for the general public, then any Muslim who enters the mosque may eat from them. If the planter’s intention is unknown, they are treated like those dedicated for public use, wherever custom has so run.
It is stated in Tuḥfat al-Muḥtāj (Vol.6/p.295): “The fruit of a tree planted for the mosque within it is not freely permitted without compensation. Rather, the imam spends its equivalent value on the mosque’s interests. The tree left its planter’s ownership here without any verbal declaration because of the evident indication. The case of planting it for the mosque excludes planting it as musabbalah, in which case eating from it without compensation is permissible, and likewise if his intention is unknown, where custom has so run. The tree may be uprooted from the mosque if the imam sees fit. Indeed, if he makes the plot a mosque while a tree stands in it, the imam may uproot it, even if the endower included it within the endowment (waqf).”
The father is a donor (mutabarriʿ), so he is not entitled to take anything in return for his donation to the mosque.
The Ministry of Awqāf is the body that supervises the affairs of endowments, so it must be consulted and the Sharīʿah and administrative instructions regulating such matters must be considered. And Allah Almighty knows best.

Is it permissible for someone who is unable to fast to pay the fidyah (ransom/compensation payment) to himself, due to his own poverty?

All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
It is not permissible, nor does it fulfill the obligation, for a sick person who is currently and permanently unable to fast to pay the fidyah (ransom/compensation payment) to himself, since it is a financial obligation owed by him, established as a standing debt upon him — much like any other debt he owes. If he were to pay it to himself, it would not thereby be discharged. So if he cannot find [anyone eligible to] pay it to, it remains a standing obligation upon him, and is not thereby waived. If Allah, the Mighty and Majestic, later grants him wealth, it becomes obligatory upon him to pay it out to the poor and needy.
Imam al-Khaṭīb ash-Shirbīnī (raḥimahullāh) said: "There is no difference in the obligation of the fidyah between the wealthy and the poor person; its benefit lies in its remaining established as a standing debt upon the poor person [until he is able to pay it] — and this is the more correct position (al-aṣaḥḥ), as indicated by the wording of ar-Rawḍah and its source text." [Mughnī al-Muḥtāj, Vol.2/P.174]
Accordingly: it is not permissible for a Muslim to pay the fidyah to himself while he remains poor. If the sick person is poor, he is not obligated to pay the fidyah immediately, and it remains a standing debt upon him until a time when he has sufficient means and wealth. And Allah, the Exalted, knows best.

A woman made a wig for herself from her own [previously shed] hair, which she wears on her head after having lost her hair [due to hair loss]. Is this permissible?

All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Since the hair belongs to the woman herself, the wig can be removed during the obligatory ghusl (ritual bathing), and part of the head can still be wiped during wuḍū' (ablution), there is no sharī‘ah objection to making this wig — provided she does not appear wearing it in front of non-maḥram men (Any males outside a woman's immediate family whom she is permitted to marry under Islamic law), since it is not permissible for them to look at a woman's detached hair.
It is stated in Rawḍat aṭ-Ṭālibīn wa ‘Umdat al-Muftīn: "Whatever it is not permissible to look at while still attached [to the body] — such as the male genitalia, a free woman's forearm, the hair of her head, and a man's pubic hair, and similar matters — it remains unlawful to look at even after it has been detached [from the body], according to the more correct position (al-aṣaḥḥ)." And Allah, the Exalted, knows best.