Blog / Everyday life

Is AI haram in Islam?

A calm, plain answer for people who use ChatGPT and similar tools every day: what is allowed, what is not, and why a chatbot is never a source of rulings.

Dates in a white bowl
Photo by VD Photography on Unsplash

Short answer: No, AI is not haram in itself. Most scholars treat it as a tool, and a tool takes the ruling of what it is used for. Using it to study, write, translate, code or run an honest business is allowed. Using it to lie, cheat, scam, fake a voice or a picture of a real person, harm someone, or invent a hadith, a Quran recitation or a fatwa is haram. A chatbot is also not a mufti, so for a ruling that affects your own life, ask a scholar.

Why a tool is judged by its use

Islam does not ask whether a thing is new. It asks what the thing is for and what it does. Allah says that He made the earth's good things for us:

The starting point

هُوَ ٱلَّذِى خَلَقَ لَكُم مَّا فِى ٱلْأَرْضِ جَمِيعًۭا ثُمَّ ٱسْتَوَىٰٓ إِلَى ٱلسَّمَآءِ فَسَوَّىٰهُنَّ سَبْعَ سَمَٰوَٰتٍۢ ۚ وَهُوَ بِكُلِّ شَىْءٍ عَلِيمٌۭ

"It is He who created for you all of that which is on the earth. Then He directed Himself to the heaven, [His being above all creation], and made them seven heavens, and He is Knowing of all things."

Quran 2:29 · translation by Sahih International

From verses like this, most jurists, the Hanafis among them, took the rule that useful things are allowed unless a text forbids them. A second rule joins it: means take the ruling of their ends. A knife used to cook is a blessing and the same knife used to hurt someone is a sin. AI is the same. There is no verse or hadith that forbids a computer program, so the question is always about what you do with it.

No harm, and no returning harm

لَا ضَرَرَ وَلَا ضِرَارَ

There is no harming and no reciprocating harm.

Sunan Ibn Majah 2341, from Ibn Abbas; also in Muwatta Malik as a mursal report. Some scholars grade the chains weak, others strengthen them by their number, and it is one of the main rules of fiqh. Imam an-Nawawi included it in his Forty Hadith.

That rule tells us where the line sits. If a use of AI harms people, it is not allowed, whatever the tool.

Allowed, disliked and haram uses

UseRuling in generalWhy
Studying, summarising, explaining a topic, practising a languageAllowedSeeking benefit by lawful means. Check what matters.
Translating, proofreading, writing emails or codeAllowedA lawful skill done with a lawful tool.
Running an honest business, customer support, designAllowedThe earning is halal if the work and the product are halal.
Spending hours with a chatbot instead of family, prayer or workDisliked and can become sinfulWasting time and neglecting a duty.
Writing a fake review, a fake reference or a fake degree paperHaramLying and cheating.
Deepfakes and cloned voices of a real person without consentHaramDeception, and harm to that person's name.
Scams, fraud, harassment, spreading rumoursHaramHarm and falsehood.
Making up a hadith, a Quran recitation or a fatwa, or voicing the Prophets or the CompanionsHaramLying about Allah, His Messenger ﷺ and the Companions.
Using a chatbot's answer as a ruling for your own caseNot allowed to rely on itIt cannot give a fatwa. See below.

Lying about the Prophet ﷺ, and false fatwas

This is the line that matters most for AI. A model can write a fluent sentence that sounds like a hadith and is not one. Spreading it is a serious matter:

A warning

إِنَّ كَذِبًا عَلَيَّ لَيْسَ كَكَذِبٍ عَلَى أَحَدٍ، مَنْ كَذَبَ عَلَيَّ مُتَعَمِّدًا فَلْيَتَبَوَّأْ مَقْعَدَهُ مِنَ النَّارِ

Lying about me is not like lying about anyone else. Whoever lies about me on purpose, let him take his seat in the Fire.

Sahih al-Bukhari 1291, narrated by al-Mughirah ibn Shu'bah

A person who passes on a made-up report without checking is in a dangerous place, even if they did not mean to lie. The Prophet ﷺ also said:

Passing things on without checking

كَفَى بِالْمَرْءِ إِثْمًا أَنْ يُحَدِّثَ بِكُلِّ مَا سَمِعَ

It is enough sin for a man to repeat everything he hears.

Sunan Abi Dawud 4992, narrated by Abu Hurayrah; al-Albani graded it sahih

The Quran says the same about statements on halal and haram:

Do not invent rulings

وَلَا تَقُولُوا۟ لِمَا تَصِفُ أَلْسِنَتُكُمُ ٱلْكَذِبَ هَٰذَا حَلَٰلٌۭ وَهَٰذَا حَرَامٌۭ لِّتَفْتَرُوا۟ عَلَى ٱللَّهِ ٱلْكَذِبَ ۚ إِنَّ ٱلَّذِينَ يَفْتَرُونَ عَلَى ٱللَّهِ ٱلْكَذِبَ لَا يُفْلِحُونَ

"And do not say about what your tongues assert of untruth, "This is lawful and this is unlawful," to invent falsehood about Allah. Indeed, those who invent falsehood about Allah will not succeed."

Quran 16:116 · translation by Sahih International

So never put out an AI-written "fatwa", a "hadith" or a "sermon of the Prophet ﷺ" as if it were real, and never use AI to imitate a Quran reciter's voice to pass it off as someone's.

Can you ask an AI for a fatwa?

A fatwa is a ruling given by a qualified person who knows the texts, knows the school, and hears your situation. A chatbot has none of these. It predicts words. It cannot be held to account, it cannot ask you follow-up questions the way a mufti does, and it often mixes schools. Allah tells us what to do when we do not know:

Ask the people of knowledge

وَمَآ أَرْسَلْنَا مِن قَبْلِكَ إِلَّا رِجَالًۭا نُّوحِىٓ إِلَيْهِمْ ۚ فَسْـَٔلُوٓا۟ أَهْلَ ٱلذِّكْرِ إِن كُنتُمْ لَا تَعْلَمُونَ

"And We sent not before you except men to whom We revealed [Our message]. So ask the people of the message if you do not know."

Quran 16:43 · translation by Sahih International

Hanafi position

Treat AI as a study aid, not as a mufti. Use it to find the question, the terms and the sources, then check the ruling in a trusted book or with a scholar. In the Hanafi school an ordinary person follows a qualified, trustworthy mufti and does not act on a ruling just because it was written with confidence.

Other madhhabs
Shafi'i
A layperson asks a mufti who is known for knowledge and religion. A text with no responsible author does not meet that.
Maliki
The same rule: ask someone qualified. The words of an unknown source are not a fatwa.
Hanbali
The same. The layperson must ask someone he trusts to be qualified, and not follow a ruling he has not checked.

On the question of whether using AI itself is allowed, the four schools do not differ in the result: new tools are permitted when the use is lawful. They differ a little in how they argue (some stress the default of permission, others stress the public good), not in the answer. For your own case, such as a business that sells AI services or a question about images, ask a mufti with our ask page or the list of places to ask a scholar.

Using AI for study, work and translation

  • Study. It can explain an Arabic word, outline a topic or quiz you. Treat the result as a lead, not a final answer, and open the real source for any ayah or hadith.
  • Work. Honest work with the tool is honest earning. Do not claim a skill or a result you do not have, and do not hand in AI work as yours where the rules say it must be your own.
  • Translation. Fine for a rough meaning. Do not rely on it to translate the Quran or a hadith for teaching or for a ruling.
  • Privacy. You are trusted with other people's secrets. Do not paste a friend's private matter, a client's data or your own family problems into a tool you do not control.

For the wider picture, including AI images and the question whether AI can have a soul, read Islam and AI.

FAQ

Is ChatGPT haram?

No. ChatGPT is a tool, and using it for study, writing, translating or work is allowed. It becomes haram when it is used to lie, cheat or harm, and you should not rely on it for a ruling.

Is it haram to use AI for homework?

It depends on the rules you agreed to. If your school or teacher says the work must be your own, handing in AI work as yours is cheating, and cheating is haram. Using AI to understand a lesson is fine.

Can AI give a fatwa?

No. A fatwa needs a qualified scholar who knows the texts and your situation. A chatbot can help you find sources, but it is not a source of rulings.

Is it haram to make AI images or voices of real people?

Making a fake picture, video or voice of a real person that could deceive others or harm their name is haram. Scholars differ on AI images of living beings in general, so ask a mufti about your own use.

Is it wrong to ask an AI about my religion?

No, as long as you treat the answer as a lead. Check any ayah or hadith in a real source and ask a scholar for your own situation.

Not answered here? Ask our team.

Sources

  1. Quran 2:29, 16:43 and 16:116, translation by Sahih International.
  2. Sahih al-Bukhari 1291; Sunan Abi Dawud 4992; Sunan Ibn Majah 2341; Muwatta Malik, Kitab al-Aqdiyah.
  3. An-Nawawi, al-Arba'un an-Nawawiyyah (Forty Hadith), hadith 32; the legal maxims as set out in Ibn Nujaym, al-Ashbah wa an-Nazair (Hanafi).
  4. Hanafi default of permission for useful things and the duty of a layperson to ask a qualified mufti: the standard usul books; the other schools are summarised from their usul manuals.

Reviewed by Hafez Mawlana Abu Darda and Mawlana Akramul Haque Fenwi, Islamic scholars. For a more accurate answer to your own situation, consult a scholar.