Interactive Outreach Centerالمركز الدعوي التفاعلي

Islam, technology and artificial intelligence

Explore technology, artificial intelligence and human responsibility for knowledge, work and harm. Start with a particular use or value.

Draft · under scholarly review10 min read

If a machine could copy your voice perfectly, who would be responsible for what it said?

Imagine your phone rings late at night. It is your brother's voice, tired and anxious: he has had an accident, his card is blocked, could you send money to this account right now? You are reaching for your banking app when something small stops you. He calls you by a nickname nobody in the family has used for years. You hang up and ring his real number. He is at home, half asleep, and has no idea what you are talking about.

The voice was generated. The technology behind it is the same technology that reads scans for doctors, translates for refugees and helps a student understand a difficult lesson. So the question is not really "Is this machine good or bad?" It is "What do we do with it, and who answers for it?"

A tool is not a creed

Some people expect a religion born in seventh-century Arabia to look at a smartphone the way a tourist looks at a ruin: with polite distance. Islam does not. It treats a tool as a tool. A knife, a printing press, a search engine and a language model are all things in the world, and the first question Islamic law asks about things is not "Are they new?" but "Do they cause harm?"

Muslim jurists summed this up in a well-known principle: in worldly things and dealings, the default ruling is permission until evidence shows otherwise. They drew it from verses such as, It is He who created for you all that is on the earth1, and He has made subservient to you whatever is in the heavens and whatever is on the earth, all from Him; in that are signs for people who reflect7. Worship is the opposite: there the default is that nothing is added without a text. So you do not need a verse to permit electricity. You would need a verse to invent a new prayer.

The Prophet ﷺ drew the same line himself. When his passing opinion about pollinating date palms did not work out, he told the farmers, "You know best the affairs of your worldly life"17. Agriculture, engineering and computing belong to that space of human expertise. Revelation does not compete with the engineer. It gives the engineer a conscience.

A story

Muslims have always picked up good tools

There is a small detail in the hadith collections that says a lot. When the Prophet ﷺ wanted to write to the kings of his time, he was told they would not read a letter unless it carried a seal. So he had a silver ring made and used it as a seal13. A foreign administrative custom, adopted without hesitation, because it served a sound purpose.

The Qur'an itself praises skill. It says that God taught David the making of coats of armour for you, to protect you from your own violence4, and that He sent down iron, in which there is great strength and benefits for people10. After listing the animals people rode in its own time, it adds, and He creates what you do not know2, an open door to forms of transport no first listener could picture.

The first words revealed spoke of God who taught by the pen, taught man what he did not know11. Writing is a technology; the Qur'an opens by honouring it. And Muslim civilisation took that seriously. The word "algorithm", the heart of every computer program, comes from the name of the Muslim mathematician al-Khwarizmi. That is not a reason for pride without effort. It is a reminder that a Muslim who builds good tools today stands in a long line, not outside his tradition.

Four questions before you use a new tool

If tools are permitted by default, does that mean anything goes? No. Islamic law has a short, demanding test for any tool, old or new. You can put it as four questions.

Four connected steps: is it harmful in itself, what is it used for, does benefit outweigh harm, and who is accountable.
Four questions Islamic ethics asks of any new tool, from the thing itself to the person responsible.

First: is it harmful in itself? Very few tools are. A program that exists only to steal passwords is; a program that writes code is not.

Second: what is it used for? The same ruling can change with the use. A camera in a hospital corridor protects patients; the same camera hidden in someone's home is a crime. The Prophet ﷺ taught that actions are judged by intentions12, and jurists added that means take the ruling of their ends.

Third: does the benefit outweigh the harm? The Prophet ﷺ laid down a rule that scholars have used for centuries: "There is to be no harm and no reciprocating harm"19. You may not harm others, and you may not answer harm with more harm. Where a tool brings real benefit and limited, controllable risk, it is welcomed. Where its harm is greater, it is restricted, however clever it is. Ibn al-Qayyim described the whole Shari'ah as built on wisdom and people's welfare: "justice entirely, mercy entirely, benefit entirely"20.

Fourth: who is accountable? A machine is never the final address. Do not follow what you have no knowledge of; your hearing, your sight and your heart will all be questioned about it3. The verse names human faculties, not instruments. Whoever designs, deploys, prompts or shares answers for what follows.

The Islamic view

Where AI tests our character

Artificial intelligence does not create new sins. It makes old ones faster, cheaper and harder to trace21. That is exactly where Islamic ethics becomes practical.

Truthfulness. The Prophet ﷺ said, "Truthfulness leads to righteousness… and lying leads to wickedness"15. A fake voice note, a fabricated photo of a public figure, a "quote" no one ever said: these are lies, whatever software produced them. Making them is lying; spreading them knowingly is lying too. He also warned, "It is enough lying for a man to narrate everything he hears"18. The forward button is a moral act.

Verification. The Qur'an tells believers that when a report comes from an unreliable source, verify it, lest you harm people out of ignorance and then regret what you have done8. That verse reads as if it were written for the age of viral clips. Before you share, ask where it came from and whether it could have been generated.

Privacy. Do not spy on one another9. The same verse forbids suspicion and backbiting. A system that harvests people's messages, tracks their movements or builds profiles of them without right is spying at scale. A Muslim engineer has a religious reason, not only a legal one, to collect less data, protect what he holds and refuse projects built on surveillance.

Trust and responsibility. "Each of you is a shepherd and each of you is responsible for his flock"14. The company that releases a model, the manager who automates decisions about people's jobs or loans, the parent who hands a child a device: each holds a flock. "The algorithm decided" is not an answer God accepts on anyone's behalf.

This is the beauty of the Islamic position. It does not ask you to fear the machine. It asks you to stay human while using it: honest, discreet, careful and answerable.

What Islam does reject in modern life

So does Islam accept everything modern? It accepts the tools and questions the worldview that sometimes travels with them.

The Qur'an describes people who know the outward surface of this worldly life, but are heedless of the Hereafter6. That is a precise description of a certain modern mood: brilliant at the "how", silent on the "why". We can build machines that answer almost any question except the ones that matter most: what am I for, what is a good life, what happens after death. When technical power grows while meaning shrinks, people become more connected and more lonely, more informed and more confused.

Islam rejects three things here, not the gadgets themselves. It rejects materialism, the claim that only what can be measured is real. It rejects the idea that whatever can be done should be done. And it rejects treating people as data to be harvested rather than souls to be honoured.

At the same time it refuses the opposite mistake, despising the world. Qarun was told, Seek, through what God has given you, the home of the Hereafter, and do not forget your share of this world; do good as God has done good to you, and do not seek corruption in the land5. Build, earn, invent, enjoy, but keep the goal in view and do no damage on the way. That one verse is a fair summary of how a Muslim relates to modern civilisation.

An objection

"Religion slows progress. Let engineers and the market decide what is acceptable."

This objection deserves its strongest form. Religious bodies have, at times, resisted useful inventions. Rules written for older societies can seem clumsy in a field that changes every month. Why not leave technology to experts and regulators?

Three answers. First, Islam already leaves the technical side to experts; that is what "you know best the affairs of your worldly life" means17. Nobody is asking a jurist to design a chip. Second, engineers and markets are excellent at answering "Can we?" and "Will it sell?", but neither can answer "Should we?" Every serious debate about AI today, about bias, deepfakes, surveillance and job loss, is a moral debate. The question is not whether ethics will shape technology, but which ethics.

Third, the ethics Islam offers are not arbitrary. Truthfulness, privacy, no harm and personal accountability are principles almost everyone recognises; Islam ties them to a Lord who sees what no regulator sees and to a Day on which no one can blame the software. That does not slow progress. It makes progress safe to trust.

The machine can copy your voice, but it cannot carry your accountability.

A Muslim's practical checklist

What does this look like on a Tuesday afternoon? Something like this:

  • Use AI to learn, draft and work, and check its output before relying on it, especially in religion, medicine and law.
  • Never generate or share a fake image, voice or quote of a real person as if it were real.
  • Ask permission before uploading other people's photos, voices or private messages into any system.
  • If you build systems, collect only what you need, protect it, and be honest with users about what the system does.
  • Keep the tool in its place: it serves your purpose; it does not set it.

None of this needs a new religion. It needs an old one taken seriously.

Questions you may have

Is it permissible for a Muslim to work in AI?

Yes. Work in computing, data and AI is permitted and can be rewarded when the intention is good and the product is used for benefit. What matters is the specific project: building medical tools, translation or education is praiseworthy; building systems for fraud, deception or unjust surveillance is not. Knowledge that benefits people is among the deeds whose reward continues after death16.

Can I use AI to learn about Islam?

You can use it as a starting point, never as the final authority. It can help you find where a topic is discussed, but it often invents quotations and hadith references. Check every verse and hadith against a reliable source before you believe or share it. The page on religious quotes and AI goes into this in detail.

Does Islam say anything about machines becoming conscious?

Islam places human dignity in the spirit God breathed into Adam and in the trust (amanah) given to humans, not in processing power. Whatever machines can do, responsibility before God remains with human beings. A separate page on consciousness, the brain and AI looks at that question more closely.

A question for you

Think of the last piece of content you shared that you had not checked. If it had been generated or false, would you be comfortable answering for it?

Show a thought

Most of us share faster than we think. Islam does not ask you to fear technology; it asks you to slow down at the moment of choice, because that moment belongs to you, not to the machine. A religion that makes that moment matter is not hostile to progress. It is protecting the person in the middle of it.

We began with a voice on the phone that sounded exactly like your brother. What saved you was not distrust of technology, but a habit of checking and a sense that what you do next matters.

That is very close to what Islam offers the modern world: permission to build, use and enjoy what is beneficial, together with a clear conscience about truth, privacy and harm, and the reminder that every tool returns, in the end, to a human being who will answer for it. If that balance appeals to you, it may be worth asking what else this religion has to say about the purpose behind all our tools.

Your next step

Sources (21)
  1. Qur'an 2:29 (al-Baqarah)
  2. Qur'an 16:8 (al-Nahl)
  3. Qur'an 17:36 (al-Isra')
  4. Qur'an 21:80 (al-Anbiya')
  5. Qur'an 28:77 (al-Qasas)
  6. Qur'an 30:7 (al-Rum)
  7. Qur'an 45:13 (al-Jathiyah)
  8. Qur'an 49:6 (al-Hujurat)
  9. Qur'an 49:12 (al-Hujurat)
  10. Qur'an 57:25 (al-Hadid)
  11. Qur'an 96:4–5 (al-'Alaq)
  12. Sahih al-Bukhari 1
  13. Sahih al-Bukhari 65 (also Muslim 2092)
  14. Sahih al-Bukhari 893 (also Muslim 1829)
  15. Sahih al-Bukhari 6094 (also Muslim 2607)
  16. Sahih Muslim 1631
  17. Sahih Muslim 2363
  18. Sahih Muslim, Introduction, hadith 5
  19. Sunan Ibn Majah 2341 (graded hasan)
  20. Ibn al-Qayyim, I'lam al-Muwaqqi'in
  21. Sapience Institute, Between Code and Conscience: Islam's Warning Lights in an AI World
Ask a question Back to the map