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

I vowed to give a specific charity if a certain matter came to pass — what is the ruling on giving that charity before the matter is realised?

All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
Fulfilling a vow (nadhr) is obligatory, in accordance with the word of Allah the Almighty: "And let them fulfil their vows." [Al-Ḥajj/ 29] And the saying of our master the Messenger of Allah ﷺ: "Whoever vows to obey Allah, let him obey Him; and whoever vows to disobey Him, let him not disobey Him." (Reported by al-Bukhārī.)
The Shāfiʿī scholars distinguished between a financial vow (nadhr mālī) and a bodily vow (nadhr badanī). They permitted the fulfilment of a financial vow to be brought forward — before the stipulated condition is met — but did not permit the same for a bodily vow, which may only be fulfilled after the condition has actually been realised.
Shaykh al-Islām Imām Zakariyyā al-Anṣārī, may Allah have mercy upon him, states: "It is permissible to bring forward the fulfilment of a financial vow before the condition stipulated in it is met — such as saying: 'If I am healed, I vow to free a slave' or 'to give such-and-such in charity' — just as it is permissible to pay zakāh in advance. This is unlike a bodily vow, such as fasting." [Asnā al-Maṭālib, vol. 4/P.246]
Imām al-Bājūrī, may Allah have mercy upon him, states: "Like expiation other than fasting, a financial vow — such as saying: 'If Allah heals my sick one, I vow to free a slave for the sake of Allah,' or 'If Allah heals my sick one, I vow to free a slave on the Friday following the recovery' — it is permissible to bring it forward before the recovery in the first case, and before the Friday following the recovery in the second case." [Ḥāshiyat al-Bājūrī ʿalā Sharḥ Ibn Qāsim, Vol.2/P.596] And Allah the Almighty knows best.

How can I love the prayer (Salah) and start praying?

Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
 
Love for the prayer (Salah) comes when you realize that this world is fleeting and the Hereafter is everlasting. Your prayer is the righteous deed that will comfort you in your grave and be your salvation before Allah in the Hereafter. Do you not wish to attain tranquility in this life and Paradise in the next? Reflect upon your state and do not delay, for life does not wait. We ask Allah to grant us and you steadfastness (Thabat).

What is the ruling on offering a sheep as a sacrifice (Udhiyah) if its fat-tail is sound, except that when it was young, the tip of its fat-tail was cut so that it would grow larger? And what is the ruling in case of doubt regarding the amount that was cut?

 
In the Name of Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
 
Cutting a minor, insignificant portion from the tip of an animal's fat-tail (al-alyah) to encourage it to grow larger is not considered a defect, and it does not prevent the animal from being valid for sacrifice (Udhiyah).
 
It is stated in Tuhfat al-Muhtaj (Vol.9/P.352): "There is some scholarly deliberation regarding the common practice of cutting the tip of the fat-tail so that it grows larger. It could potentially be likened to a partial cut of the ear—supported by the jurists' general rule: 'even if it is a small amount.' On the other hand, if it is an exceptionally minor cut, it might have no effect on validity. This is explicitly clarified by the juristic exception to the general rule, which states that cutting a tiny piece from a large limb causes no harm. This latter view is more well-founded.
 
Furthermore, I found that some scholars investigated this matter and concluded: 'It should not affect validity if a custom-sanctioned portion of its fat-tail is removed during its youth to make it grow larger and look better, just as castrating a male animal causes no harm.' However, applying this unconditionally contradicts the established texts of the jurists, as understood from what I have laid out; thus, the restriction I specified is what must be relied upon."
 
Similarly, it is mentioned in Nihayat al-Muhtaj (8/135): "If a small piece is cut from the fat-tail to help it grow larger, the most well-founded view is that the sacrifice remains valid, as was given in a formal legal verdict (Fatwa) by my father [Shihab al-Din al-Ramli], may Allah be pleased with him. This is proven by the jurists' maxim: 'The loss of a tiny piece from a large limb causes no harm.'"
 
In cases where there is doubt as to whether the portion cut was large or small, the animal is still deemed valid for sacrifice. It is noted in Hashiyat al-Shubramallisi ‘ala Nihayat al-Muhtaj (Vol.8/P.135):
 
"This matter requires careful consideration, but the closer and more correct view is that it is valid. This is because soundness is the default state for the animal from which the piece was cut, and it aligns with what usually occurs—namely, that the part removed to help the fat-tail grow larger is naturally very small." And Allah the Almighty Knows Best.

What is the ruling on making up missed prayers during prohibited times?

 

Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
 
It is permissible to make up (qada’) missed prayers at any time, even during the periods when prayer is generally prohibited. The prayers that are forbidden and considered invalid during these times are 'absolute voluntary prayers' (nafl mutlaq)—which have no specific cause—and voluntary prayers whose cause follows the prayer itself, such as the Sunnah of entering Ihram or the Sunnah of the Istikharah prayer. Furthermore, no prayer is considered disliked (makruh) during these prohibited times when performed within the Meccan Sanctuary (Makkah al-Mukarramah).
 
It is stated in Bushra al-Karim (Vol.1/P.181), one of the Shafi’i texts: 'It is not forbidden to perform prayers that have a cause that is not delayed (i.e., the cause is preceding), such as making up a missed prayer (fa’itah)—even if it was a voluntary one—and the funeral prayer (janazah); or a cause that is simultaneous, such as the prayer for rain (istisqa’) or the eclipse prayer (kusuf)... and the Sunnah of wudu, the greeting of the mosque (tahiyyat al-masjid), the Sunnah of circumambulation (tawaf), the Sunnah of arrival, and the prostrations of recitation (tilawah) or thankfulness (shukr). These mentioned prayers and their like are not forbidden provided that one does not specifically intend (ta'ammud) to perform them during the disliked time because it is a disliked time. If one does so intentionally, it becomes forbidden, even if it is a mandatory makeup prayer that is due immediately; because in that case, one is acting in defiance of the Sharia. This is in contrast to when one does not specifically seek out that time, even if the prayer happens to fall within it, or if one seeks it for another purpose—such as delaying a funeral prayer to that time so that a larger number of people may pray over the deceased; in such cases, it is permissible and valid... And it is forbidden to perform prayers with no cause at all, like absolute nafl, or those with a delayed cause, such as the Istikharah prayer, the prayer for Ihram, the prayer for a need (hajah), the prayer before leaving the house, or the prayer before execution; because their causes occur after the prayer itself.' And Allah the Exalted knows best."