- Published on
Is Using AI Art Haram? What Islam Says About AI-Generated Images
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education โข Deen Back
ุจูุณูู ู ุงูููู ุงูุฑููุญูู ูฐูู ุงูุฑููุญูููู ู
In the name of God, the Most Gracious, the Most Merciful.

You have probably seen what AI image generators can create. Breathtaking landscapes. Detailed portraits. Illustrations that would have taken a skilled artist days โ produced in seconds.
And if you are a practicing Muslim, you have probably wondered: is this okay? Is generating or using these images haram?
The honest answer requires you to think through what Islam says about images in general โ because the ruling on AI art is an extension of existing principles, not a completely new problem.
The Quick Answer
AI-generated art is not categorically haram. The ruling depends on what the image depicts and how it is used โ exactly the same criteria that apply to any other form of visual art.
- Landscapes, nature, geometric patterns, abstract art: generally permissible
- Images of living beings with defined faces and forms: scholars differ โ many classical scholars discouraged this; many contemporary scholars permit it for lawful purposes
- Any image depicting what Islam prohibits (nudity, sexual content, glorification of haram): clearly haram
- Images claimed to depict Prophets of Islam: not permissible
The technology being artificial intelligence does not introduce a new ruling from scratch. It is a new delivery mechanism for an old question.
What the Quran and Sunnah Say About Images
The primary evidence concerns taswir โ the making of images or representations, particularly of living beings.
The Prophet ๏ทบ said: "The most severely punished on the Day of Resurrection will be those who make images (musawwirin)." (Sahih Bukhari 6109)
He also said: "Every image-maker is in the Fire. A soul will be breathed into every image he made, and it will punish him in the Fire of Hell." (Sahih Bukhari 5963)
These hadith are severe. They are also well-documented. But context matters enormously here.
Classical scholars โ particularly when interpreting these hadith โ focused on images created with the intent to imitate or compete with Allah's creation: three-dimensional statues, idols, or two-dimensional images made with the purpose of worship or glorification. Many scholars also distinguished between images of living beings and images of non-living things (trees, landscapes, abstract patterns), considering only the former potentially problematic.
Contemporary scholars โ including major institutions like the European Council for Fatwa and Research and scholars like Sheikh Yusuf Al-Qaradawi โ have addressed photography and digital art separately from the original context of the hadith, generally permitting photography of humans for lawful purposes while maintaining the prohibition on anything that crosses into idolatry, obscenity, or deception.
Why This Is Actually Hard
The real challenge is not the ruling on landscapes. It is the pull of the nafs toward the images the ruling most directly addresses.
AI generators make it effortlessly easy to produce images of beautiful people, intimate scenes, or explicit content. The barrier between a haram desire and a haram image has never been lower. The nafs does not even need to seek it out โ it just needs to type a few words.
This is the self-control dimension that legal rulings alone do not address. Even if a scholar permits AI-generated portraits for certain purposes, the question remains: what are you generating them for? What is driving your use? The nafs is an expert at finding legal loopholes for desires that are spiritually harmful.
The Prophet ๏ทบ said: "The halal is clear and the haram is clear, and between them are ambiguous matters. Whoever avoids ambiguous matters has protected his religion and his honor." (Sahih Bukhari 52)
The zone of AI-generated images of human beings is currently one of those ambiguous areas. Caution is the Islamic default when scholars genuinely differ.
What to Do โ Practical Steps
Apply the content rule first. Whatever the technology, if you would not display it on your wall or send it to your parents, do not generate it. The content-based ruling predates AI and applies directly.
Default to permissible subjects. Need an image for a business project, a blog, a social media post? Generate landscapes, abstract art, geometric patterns, symbolic imagery, or food. These are unambiguously permissible and AI excels at them.
Be honest about intent. Generating a headshot of yourself for a professional profile is a different act from generating images of attractive strangers for entertainment. The content is similar; the spiritual weight is different. Islam evaluates both the act and the intention.
Avoid images of Prophets and sacred figures entirely. There is no Islamic benefit that justifies this risk. The potential for harm to the Muslim community and to yourself is severe. This is a clear line.
Check the content you are outsourcing to AI. If you are generating stories, scripts, or prompts that AI then illustrates with haram scenes, the haram is still yours even if the pixels were generated by a machine.
Navigate the Digital World With Islamic Clarity
DeenBack helps you build the daily Islamic habits โ dhikr, Quran, dua โ that give you the spiritual grounding to navigate new technology with clarity rather than confusion. Start building your daily practice today.
Free download. Premium features available in-app.
Dua When Tempted
When you feel pulled toward generating or consuming content you know is doubtful:
ุงููููููู ูู ุฅููููู ุฃูุนููุฐู ุจููู ู ููู ุดูุฑูู ููููุณูู ููู ููู ุดูุฑูู ุงูุดููููุทูุงูู ููุดูุฑููููู
Allahumma inni a'udhu bika min sharri nafsi wa min sharri ash-shaytani wa shirkihi
"O Allah, I seek Your protection from the evil of my nafs and from the evil of the Shaytan and his associates."
โ (Abu Dawud 5094)
Common Questions
Is it haram to look at AI-generated art of the opposite gender? Looking at images of the opposite gender follows the same ruling as looking at photographs โ the content and your reaction determine whether the act crosses a line. Gazing at AI-generated images in a way that stirs desire for what is haram is the same spiritual problem as doing so with photography. The ruling on lowering the gaze applies.
Can I use AI art for Islamic educational materials? Using AI-generated images of landscapes, mosques, calligraphy-style patterns, and non-figurative imagery for Islamic education is generally permitted and practical. Using AI-generated human imagery for this purpose is an area where you should consult a scholar given the ongoing discussion.
What about AI art that includes text in Arabic or Quranic verses? Generating imagery that pairs Quranic text with potentially problematic visuals is to be avoided. Using Arabic phrases in purely geometric or calligraphic AI designs is generally permissible.
Is prompting AI to create an image the same as drawing it? Scholars are still discussing this. The more important question is: does the image you generated depict what Islam permits? If yes, the mechanism of generation matters less. If no, the mechanism does not provide a defense.
Your Digital Creation Is Still Creation
AI art is a tool. Like every tool, it takes the ruling of how it is used โ a principle echoed throughout Islamic jurisprudence. The technology does not create a new moral universe. It accelerates movement through the moral universe that already exists.
Use it for what is halal. Avoid it for what is haram. When the line is unclear, err on the side of caution. And when the nafs tells you "it's just an AI image โ it doesn't count," remember: it always counts.
For a broader Islamic look at AI tools, see is AI haram and is ChatGPT haram. For the foundational Islamic discussion on imagery, is photography haram and is drawing haram give the classical scholarly context.
Ground Your Digital Life in Your Deen
DeenBack helps you replace digital habits that drift toward the haram with consistent Islamic practices โ daily dhikr, Quran, and dua that keep your heart oriented toward what matters. Start your streak today.
Free download. Premium features available in-app.
Frequently Asked Questions
Is AI-generated art haram in Islam?
AI art is not categorically haram. The Islamic ruling on images depends on what is depicted, not the technology used to create it. Images of living beings with faces (especially humans) have traditionally been considered problematic by many scholars. Images of landscapes, abstract art, and geometric patterns are generally considered permissible. The technology being AI does not change this foundational analysis.
Is it haram to generate AI images of people?
Generating realistic images of humans using AI touches the same scholarly discussion as drawing or photography of living beings. The majority of classical scholars discouraged creating images that replicate the face and form of living beings (taswir). Contemporary scholars differ โ many permit photography and AI art of humans for lawful purposes; others remain cautious. This is an active area of scholarly discussion.
Is it haram to use AI art for business or social media?
Using AI-generated images for business purposes โ product mockups, landscapes, abstract designs โ is generally permitted. The content of the image determines the ruling, not the commercial context. If the AI art depicts permissible subjects, using it commercially is permissible.
Is it haram to generate AI images of the Prophet or other prophets?
Yes. Generating images that are claimed to depict any Prophet of Islam, including Prophet Muhammad (peace be upon him), is impermissible and potentially deeply harmful to the Muslim community. This applies regardless of the technology used.
Does using AI art count as artistic creation in Islam?
Scholars are discussing this. The classical hadith about image-makers (_musawwir_) being challenged to breathe life into their creations was directed at those who intentionally imitated divine creation. Whether prompting an AI constitutes the same act of 'creation' is a contemporary fiqh question โ many scholars argue the ruling depends on the content generated, not the mechanism.
