Articles

Liability for Errors Resulting from Artificial Intelligence
Author : Dr. Mufti Sa`eid Farhan
Date Added : 03-12-2025

Liability for Errors Resulting from Artificial Intelligence

 

All praise is due to Allah, the Lord of all worlds. May peace and blessings be upon our Master Muhammad, and upon his family and companions.

Recently, the discussion surrounding Artificial Intelligence (AI) has intensified. AI is a product of humanity's technological advancement, a progress accelerating at a pace that humanity itself can barely comprehend. It is self-evident that AI has penetrated every field, even matters of religion and fatwā (Shariah rulings), as reliance on AI is increasing gradually. AI now offers services to people, educating them, issuing fatāwā for them, and sometimes even treating them medically.

The definitions of Artificial Intelligence have varied, but they share a common thread of discussing problem-solving or finding solutions through a machine. One of the best statements clarifying this is Philip J. Janssen's definition of AI: "It is the science and engineering of machines with capabilities considered intelligent according to human intelligence standards."[1]

Here, a critical question arises: What if the use of AI in any of its application fields results in an error, a defect, or even a felony? What are the consequences, and who bears the liability (taba'iyyah)?

Undoubtedly, reliance on AI is a good thing with obvious benefits. But has AI been fully understood and all its aspects comprehended? If a human makes a mistake, they can be held responsible for the consequence of their error, whether the error was purely accidental or involved negligence or dereliction of duty. Each error has a corresponding penalty, which is clear and unequivocal. However, ambiguity arises when the error originates from multiple sources; that is, the error resulted from interconnected actions. This is similar to what jurists refer to as the meeting of the Indirect Cause (Mutasabbib) and the Direct Perpetrator (Mubāshir), such as when one person ties up another, and a third person comes and kills him. This case has its settled jurisprudential rulings in the four schools of thought (Madhāhib).

However, what is the situation if a similar act arises from the use of AI? For example, a company programs a self-driving car, and this autonomous driving results in an accident leading to a human death. In this case, the direct perpetrator is a machine, but not a machine in the previously known sense; rather, it is a machine manufactured in a way that simulates the human method of decision-making. Who bears the liability for this error, and the resultant guarantee (ḍamān) or punishment ('uqūbah)?

Examples of AI Errors:

Concern over this issue has arisen due to the increasing number of errors resulting from the comprehensive use of AI. Some of these machine-induced errors have reached the extent of taking a life.

For instance, an error could be produced by a robot, resulting in the killing or causing bodily harm to a person. The harm might also be purely financial. There have been numerous errors resulting from reliance on AI, of which we mention a few:

First: The U.S. National Highway Traffic Safety Administration (NHTSA) recorded over 392 accidents linked to self-driving systems in cars (like Tesla, Honda, etc.), resulting in six direct fatalities [2]. Who is responsible for these deaths, and upon whom is the blood money (Diyyah) and expiation (Kaffārah) due?

Second: A study conducted in several medical centers in Poland found that doctors failed to detect signs of cancer when using AI techniques, according to the tech website TechSpot. These centers were participating in a trial program using AI in colonoscopy for potential cancer prevention. This prompted researchers to study whether AI affects surgeons' skills. The team analyzed over 1442 procedures performed by highly experienced doctors, each having performed over 2000 colonoscopies. The success rate in detecting colon cancer was measured for 3 months before using AI tools and for another 3 months after using AI techniques. The study found a 6% decrease in the success rate of detecting colon cancer among doctors who used AI for 3 months compared to the period when they did not use AI techniques [3].

In a study by The Lancet Digital Health Institute, AI algorithms for diagnosing skin cancer gave erroneous results in 11-15% of cases compared to specialist doctors.[4]

Jurisprudential Efforts in This Field:

Although the discussion of liability for errors resulting from AI is new to the jurisprudential arena, literature on the subject has proliferated. Most of this literature consists of Shariah or legal research published in peer-reviewed journals. This is likely due to the primary importance of the topic, the necessity of clarifying its Shariah ruling as a novel issue, and the ambiguity that may surround it, given AI's continuous and astonishing development.

There have been attempts to clarify the Shariah ruling or legal opinion on the consequences of AI errors. For example, a published research paper by Dr. Najlaa Ibrāhīm[5] clarified the ruling on killing caused by a robot or resulting from a car accident in various scenarios, sometimes reaching the penalty of retaliation (Qaṣāṣ). However, this is not against the machine, but against the controller, if he was in control of the machine, which is then treated as a knife in the hand of the killer.

Furthermore, the book [Criminal Liability for AI Damages] by Muhammad Ali Abū 'Alī analyzed and studied the criminal liability of AI for its criminal acts and the possibility of establishing the elements of criminal liability for the harms and criminal acts committed by AI.

The difficulty here is that the robot or machine is not a mere tool in the conventional sense; rather, it is an independent entity manufactured in a way that gives it the ability to make certain decisions. In this case, criminal liability may fall on the machine's controller or the programmer, or it may not, depending on the details and circumstances of the incident.

Islamic jurisprudence is capable of resolving all these ambiguities related to errors or crimes committed by the machine, classifying them in light of Shariah, and issuing rulings. Since the early eras of Islamic law in the second century AH, jurists have discussed similar issues concerning the machine in the chapter on the combination of the Direct Perpetrator and the Indirect Cause (Ijtima' al-Mubāshir wa al-Mutasabbib). Examples include: If one person throws another from a height, and a second person intercepts him with a sword and cuts him in two [6], the liability lies with the one who intercepted with the sword. If one throws him into drowning water, and a whale intercepts and swallows him, the liability lies with the one who threw him, because the whale is not subject to liability [7]. The machine can be analogized to the whale in the previous example due to the common factor of lack of legal competence and capacity ('adam at-taklīf wa 'adam al-ahliyyah).

There is also recourse for such issues in the jurisprudential maxim: "The injury caused by an unintelligent being is void" (Jināyat al-'Ajmā' Jubār). This means that the harm caused by an animal to life or property is void (i.e., not liable) if it does not originate from the action of a willing perpetrator (such as a driver, leader, rider, striker, stabber, or one who causes fright) [8].

Legal Efforts in This Field:

The interest of the Shariah scholars in the laws regulating liability for damages resulting from AI is no less than that of the legal scholars. This is due to the necessity of reaching a legal classification (takyīf) for AI, upon which the consequences of any error resulting from AI use, such as the necessity of compensation and the resulting punishment, are built.

Many books and research papers have been published urging the determination of the legal classification of AI and the effect of errors resulting from its use, and the issuance of legal legislation to regulate all of this. Examples include: a research paper by Dr. Ben 'Awdah Ḥaskar Murād titled: [The Problematic Application of Criminal Liability Rulings to AI Crimes], which clarified the complexities and ambiguity in applying the provisions of the Penal Code to AI crimes due to the perceived difficulty in identifying the actual perpetrator.

In a research paper titled [Criminal Liability for AI Errors], published in the Zaytoona University Journal in 2024, the researcher Ḥanān Khiḍr al-Ḥasanāt discussed the legal deficiency in regulating the foundations of criminal liability arising from AI errors.

While imposing punishment for harmful acts resulting from AI is somewhat ambiguous and requires more legislation, the necessity of compensation (ḍamān) is clear and unproblematic. Article (265) of the Jordanian Civil Code stipulates: "Every harm done to another obligates the perpetrator, even if he lacks discernment, to compensate for the damage." Based on this, if any harm occurs from an autonomous entity or the like, the liability falls upon the operator or the programmer, and the machine is considered a mere tool.

An example from practical reality in a foreign country: a customer asked an airline's intelligent chatbot about discounts on flight tickets. The chatbot mistakenly assured him he was eligible for a discount, and based on that, he bought the tickets. However, the company's policy did not include any actual discount at that time. When the customer did not receive the promised refund, he filed a lawsuit against the airline. The court ruled in his favor, ordering the company to adhere to the non-existent policy and pay compensation. The company's argument that "the chatbot was responsible for its own actions" was definitively rejected. Instead, the case established that companies bear responsibility for their AI agents.[9]

In conclusion, it has become essential to exert scholarly effort (Ijtihād) regarding the rulings on errors resulting from the use of AI, and to establish legal legislation emanating from both jurisprudential and legal scholarly efforts to resolve disputes and eliminate disagreements on this matter. In addition to its necessity, it is a highly difficult issue because it is a blend of jurisprudence, law, technology, and humanity.

Furthermore, the resulting errors vary significantly in degree: there is the slight error and the gross error, with many stages in between. There are financial errors related to property and criminal errors resulting in death. The latter is the most serious, and it is illogical for there to be no laws and foundations regulating all this, leaving the matter to judicial discretion that may differ from one perspective to another.

References

[1] Mark Coeckelbergh, AI Ethics, translated by Heba Abdel-Aziz Ghanem.

[2] National Highway Traffic Safety Administration (NHTSA), available at: https://www.nhtsa.gov/

[3] Al Jazeera Net — “Study: Doctors Fail to Diagnose Cancer,” available at: https://www.aljazeera.net/tech/2025/8/16/...

[4] The Lancet Digital Health, available at: https://www.thelancet.com/journals/landig/home

[5] Dr. Najla Ibrahim Barakat, Head of the Department of Comparative Fiqh, Faculty of Women, Assiut University.

[6] Explanation of the statement: “If a person throws another from a high place, and during his fall he lands on the sword of a third person, resulting in his death.”

[7] Mukhtasar al-Taḥrīr with the commentary Sharḥ al-Kawkab al-Munīr by Ibn al-Najjār al-Ḥanbalī, vol. 1, p. 448.

[8] Ahmad al-Zarqā’, Sharḥ al-Qawā‘id al-Fiqhiyyah, p. 457.

[9] Digital Defynd — “Top AI Disasters,” available at: https://digitaldefynd.com/IQ/top-ai-disasters/

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 on one who vows to fast a specific or non-specific year? Are the two Eids, the days of Tashreeq, Ramadan, and the days of menstruation and postnatal bleeding included in them? And do these days break the consecutiveness if it was intended?

Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
 
If someone makes a vow (Nadr) to fast a specific, designated year, this vow does not include the days of Eid, the days of Tashreeq (the three days following Eid al-Adha), Ramadan, or the days of menstruation (Hayd) and postnatal bleeding (Nifas). Furthermore, there is no requirement to make up (Qada) these specific days.
 
However, if someone vows to fast a year that is not specifically designated (i.e., any twelve-month period) and stipulates that the fasting must be consecutive, they are bound by that condition. They must not fast on the days of Eid, during Ramadan, or during menstruation, but they are required to make up these days afterward—with the exception of the days of menstruation and postnatal bleeding, which do not need to be made up.
 
It is stated in Hashiyat al-Bajuri ‘ala Sharh Ibn Qasim ({Vol.2/P.606): 'If one vows to fast a specific year, the Eid, Tashreeq, Ramadan, and days of menstruation or postnatal bleeding are not included. This is because Ramadan does not accept any fast other than its own, and the others do not accept fasting at all. Therefore, they do not enter into the vow, and no makeup is required for them because they are legally excluded—contrary to Al-Rafi’i regarding menstruation and postnatal bleeding.
 
If one vows to fast a non-designated year: if they stipulated consecutiveness (Tatuabu’) in their vow, they must fulfill it; otherwise, they are not bound to it. Consecutiveness is not broken by the days that do not enter into the specific year vow (Eid, Tashreeq, Ramadan, menstruation, and postnatal bleeding). However, one must make up the days missed—excluding the time of menstruation and postnatal bleeding—immediately following the end of the year. As for the time of menstruation and postnatal bleeding, it is not made up, contrary to Ibn al-Rif’ah, who argued that it must be made up just like Ramadan.' And Allah the Exalted knows best.

What is the ruling on selling sacrificial animals (udhiyah) described with specific attributes and authorizing an agent to slaughter them?

Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
 
Selling sacrificial animals (udhiyah) that are described with specific attributes is permissible. This falls under the category of a salam sale (forward sale) if conducted using the terminology of salam, and under the category of a regular sale if not using the terminology of salam.
 
As for authorizing the seller to slaughter the sacrificial animal, the basic principle is that it is permissible, because the agent (wakil) stands in the place of the principal (muwakkil) in achieving his objective. This is a contract that the principal (the buyer) is entitled to perform himself, so authorizing another (the seller) to do so on his behalf is valid.
 
However, it is a condition for authorization to slaughter that the intention (niyyah) is present either at the time of slaughter or at the time of handing over the sacrificial animal to the agent. The basic principle is that the sacrificial animal must be specifically designated, as it is an act of worship. It is not required to designate it at the time of slaughter; rather, it is valid to do so before that.
 
It is permissible for the principal either to delegate the intention to the agent or to formulate it himself when authorizing the agent to slaughter. However, the sacrificial animal must be designated, even if at the time of slaughter, by the agent.
 
It is obligatory to designate the sacrificial animals so that each person offering a sacrifice receives his own specific animal. Therefore, charitable organizations and companies must take this into consideration and establish a specific mechanism that ensures no mixing of sacrificial animals occurs, so that each person offering a sacrifice receives his own designated animal. And Allah Almighty knows best.

What is the ruling on one who wiped over his leather socks (*khuff*) while resident and then traveled, or wiped while traveling and then became resident? And likewise, what is the ruling on one who incurred a minor ritual impurity (*ḥadath aṣghar*) while resident, then traveled and wiped while traveling?

 

All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever wipes over his leather socks (khuffayn) while resident and then travels, or wipes while traveling and then becomes resident, before a day and a night have passed in both cases, completes the wiping period of a resident. If he wipes while resident and then travels after a day and a night have passed, he must remove the socks, because the period has ended. Likewise, if he wipes while traveling and then becomes resident after a day and a night have passed, he must remove them as well.
Whoever breaks his wuḍūʾ while resident and then wipes while traveling takes the ruling of a traveler as regards the duration of wiping, so long as he does not become resident. It is stated in ʿUmdat al-Sālik wa ʿUddat al-Nāsik (Vol.1/p.15): “If he wipes over both [socks] or one of them while resident and then travels, or wipes while traveling and then becomes resident, or doubts whether he began the wiping while traveling or while resident, he completes only the wiping period of a resident. But if he broke his wuḍūʾ while resident and wiped while traveling, he completes the period of a traveler, whether or not the full time of a prayer had passed over him while resident.” And Allah Almighty knows best.

What is the ruling on someone who intends to travel to Jeddah for two days — must he enter iḥrām from his place of residence [i.e., before passing the mīqāt]?

All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Whoever is firmly resolved in his intention to perform ‘Umrah before setting out on his journey, it is unlawful for him to pass beyond his country's mīqāt (the designated boundary point for entering the state of iḥrām) without entering iḥrām. If he does so, he must return to the mīqāt to enter iḥrām from there, provided he has not yet begun performing the rites of the pilgrimage — in which case nothing further is required of him. However, if he does not return, he must offer a sacrifice (sheep/goat), to be distributed among the poor of the Ḥaram.
It is stated in at-Tanbīh fī al-Fiqh ash-Shāfi‘ī (p. 71): "Whoever, intending to perform the rites [of ‘Umrah or Ḥajj], passes beyond the mīqāt and enters iḥrām only after it, must offer a sacrifice. However, if he returns to the mīqāt before beginning any of the rites, the sacrifice is waived from him."
Accordingly: whoever is firmly resolved in his intention to perform ‘Umrah before setting out on his journey must enter iḥrām at the mīqāt of his country through which he passes. Whoever fails to do so, passing beyond the mīqāt without entering iḥrām, and does not return, has sinned, and must repent to Allah, the Exalted; and he must offer a sacrifice, to be distributed among the poor of the Ḥaram. And Allah, the Exalted, knows best.