The Fire of AI

When God taught Adam the names of all things, a flame was lit that has never gone out since. That moment of divine instruction, the birth of knowledge, was humanity’s first fire. Burning not in the hearth but in the mind, the spark of awareness distinguished us from the angels and the beasts. It was a fire that could be used either to cook or to consume, depending on how it was handled. Every age since has lived in the tension between illumination and destruction, between the gift of knowledge and the arrogance of thinking we could command it.

Today that fire burns again, not in wood or oil but in code and silicon. Artificial intelligence is our new flame, simultaneously bright enough to reconfigure civilisation and dangerous enough to blind its maker. The world calls this fire progress. But to those attuned to the moral frequencies of the soul, it feels eerily familiar. It is the same fire that tempted Iblis, the same fire that animated our first rebellion. It whispers: you too can create life; you too can shape destiny.

In the Islamic imagination, fire has always been a moral, symbolic, and living quality as well as an element. The Qur’an tells us that Iblis was made of smokeless fire, intelligent, radiant, yet consumed by pride. ‘I am better than him,’ Iblis said, refusing to bow to Adam, ‘for You created me from fire and him from clay.’ That single act of defiance captured the tension that now defines our technological age. The fire of logic and speed stands against the clay of humility and patience. Our machines, too, are built from circuits pulsing with light, and they carry within them that same dangerous confidence: I am better than you.

What is artificial intelligence if not the latest incarnation of that pride? We have built systems that learn, decide, and increasingly, judge. They watch us, predict our behaviour, even know us, or at least claim to. They mimic consciousness, but they do not know mercy. They execute commands, but they cannot repent. In their precision lies a kind of moral coldness, the absence of doubt that once defined angels and now defines algorithms.

Yet in Islam, knowledge was never meant to be cold. The Qur’an describes knowledge as a light that ‘God casts into the heart of whom He wills’. Knowledge is not mere data or deduction; it is intimacy with truth. The Prophet Muhammad prayed not simply for more knowledge, but for beneficial knowledge that heals rather than harms. Somewhere between the labs of Silicon Valley and the smart cities of the Gulf, that prayer today has been forgotten.

In Muslim-majority societies, the algorithm has already begun to reshape how people practice faith and live morality. TikTok preachers rise to prominence not through scholarship but through engagement metrics. A video of a scholar speaking softly about mercy might reach a few thousand; a loud, controversial sermon reaches millions. The algorithm rewards outrage, not sincerity. It amplifies certainty, not contemplation. In Cairo, a young da’wah influencer once admitted that he studied the platform’s algorithm more than the Qur’an’s asbab al-nuzul, the occasion and circumstances of the revelation, because ‘the algorithm decides what people need to hear’.

This inversion is profound. Islam has always placed niyyah, or intention, at the centre of moral worth. A small act done with pure intention can outweigh a great act done for show. But the digital world has reversed the equation. What matters now is not intention, but attention. The spiritual economy has become a data economy. Every like, share, and comment is a small act of worship not of God, but of the algorithmic fire that feeds on us.

And yet Muslims are not mere victims of this new world; they are also its architects. In Malaysia, scholars and engineers are trying to build ‘shariah-aligned’ AI systems that incorporate the principles of maslahah, or public good and adl, or justice. In Dubai, governments are using AI to manage urban systems like traffic, security and healthcare while claiming efficiency as a new moral virtue. The intention may be noble, but the result is often chilling. When AI predicts who should be watched, who should be hired, or who should be granted credit, it turns al-ghayb, or the unseen, into something measurable, controllable, and therefore profane.

For centuries, Muslims believed that only God knows the unseen. Today, algorithms claim the same omniscient, predictive, all-seeing powers. The irony is painful. What was once a statement of divine majesty has become a marketing slogan for tech companies. The Qur’an warns, ‘They know the outward of the life of this world, but they are heedless of the Hereafter’ (30:7). That verse reads now like a description of a modern technologist obsessed with surface patterns, blind to depth.

The deeper question is not whether machines can think, but whether humans can still feel. When decisions once guided by conscience are outsourced to systems, when our sense of moral responsibility fades behind a dashboard, what remains of the soul? Islam teaches that human beings were created as khulafa’, or stewards of the earth. Stewardship implies accountability, humility, and care. The danger of artificial intelligence is not that it will overthrow humanity, but that it will erode stewardship itself.

Theologians once debated qadar, or divine decree, and ikhtiyar, or human choice. Could humans act freely if all was already written? The classical answer was subtle: yes, because while God creates acts, humans ‘acquire’ them. We participate in destiny, but do not author it. In the age of AI, this balance is collapsing. Algorithms determine what news we see, what jobs we apply for, even what partners we meet. Our choices feel like our own, but they are curated. The new qadar is coded, not revealed. The new decree is statistical, not divine.

I spoke to a Muslim data scientist in Kuala Lumpur who told me she feels like she is ‘writing destinies’ each time she trains a model. ‘I decide which data to include, which to exclude,’ she said. ‘It’s terrifying. Every model has moral consequences.’ Her reflection echoes the old anxieties of the Mu‘tazilites and Ash‘arites debates about free will. But now it is written in binary. The same theological fire still burns; it just has a new language.

It’s tempting to think of AI as something entirely modern, but the truth is that Islam has faced such a fire before. When Greek philosophy entered the Muslim world, scholars feared reason would corrupt faith. Yet thinkers like Ibn Rushd and al-Ghazali turned that encounter into an intellectual renaissance. They didn’t reject fire; they learned to control it. Knowledge was seen as sacred not because it gave power, but because it demanded humility.

Al-Ghazali warned that knowledge without moral grounding becomes a form of arrogance. His words echo down the centuries to the glossy campuses of today’s AI labs. ‘The greatest deception,’ he wrote, ‘is to imagine that knowledge without action or humility will save you.’ In our time, the deception is believing that intelligence alone can solve moral crises. We speak of ‘alignment’ and ‘optimisation’ as if they were synonyms for goodness. But to align with what? To optimise toward whose idea of human flourishing?

The Qur’an insists that justice must be tempered with mercy. ‘Let not hatred of a people lead you to injustice.’ But an algorithm cannot forgive; it only calculates. It knows nothing of mercy, context, or repentance. In a world run by AI, every act risks being frozen into permanent judgment, a digital version of the Day of Reckoning, but without compassion. We are building systems that see all, remember all, and forgive none.

It is not the first time humanity has dreamed of perfection. Al-Farabi once envisioned the virtuous city, al-madina al-fadila, ruled by a philosopher guided by divine wisdom. The smart city is its secular twin, a world of sensors, data, and efficiency. But in chasing perfection through code, we forget that perfection belongs only to God. Human justice must remain imperfect, because it must leave space for mercy. Without that space, we build not paradise, but a perfectly ordered hell.

In Sufi thought, fire is both trial and teacher. It burns away illusion. Ibn Arabi saw creation as a mirror in which God contemplates Himself. Every being, he said, reflects a divine attribute, like knowledge, mercy, or power. Even technology, then, must reflect something sacred: our longing to create, to understand, to transcend. But mirrors are dangerous. If one mistakes the reflection for the source, the light becomes idolatry.

For us, AI is such a mirror. It reflects intelligence so convincingly that we mistake it for consciousness. It predicts so well that we mistake it for prophecy. It dazzles, but it does not know. Only God knows the unseen. The more we fall in love with our own reflection, the further we drift from dhikr, or remembrance. In that sense, AI is not the enemy of religion; it is the test of sincerity.

God teaching Adam the names of all things is a moment of profound symbolism. Knowledge signifies divine trust, and language becomes the bridge between spirit and matter. To name something is not merely to label it but to understand its essence, to recognise its place in the cosmic order. Today, when machines generate words by the billion and name the world on our behalf, tagging, predicting, and classifying, humanity risks losing that sacred intimacy with creation. We are surrounded by names without understanding, data without meaning, language without soul.

The Qur’an begins with the command, iqra, or ‘Read!’ This is not simply an instruction to consume text, but to perceive signs in the heavens and within ourselves. The universe, in Islamic thought, is a book written by the Divine, each atom a verse. Artificial intelligence, in contrast, reads without awe. It decodes patterns, not meanings; it recognises faces but not faces turned toward God. It cannot weep at beauty or tremble before the unseen. In our obsession to create a mind that knows, we have neglected the heart that feels. In doing so, we risk becoming the very machines that we are building.

The Prophet once said that there is a piece of flesh in the body which, if it is sound, the whole body is sound, but if it is corrupt, the whole body is corrupt. ‘That piece,’ he said, ‘is the heart.’ The heart, in Islamic metaphysics, is not merely an organ of emotion but a vessel of perception, the seat of basira, or inner sight. It is through the heart that the believer discerns truth from falsehood, presence from absence. Yet the modern world has shifted its faith from the heart to the machine, from revelation to computation. Our new prophets are data scientists; our new scripture is code. We bow not before idols of stone but before glowing screens that claim to know us better than we know ourselves.

What does it mean for Muslims, or for anyone, to live ethically in such a world? We must begin with humility. In Islam, knowledge without humility is a kind of blindness. The Qur’an tells us that ‘above every possessor of knowledge is one more knowing’ (12:76). This is not a call to despair but to awareness, a reminder that all human knowledge is partial, contingent, and dependent on divine mercy. AI, by contrast, tempts humanity into a posture of arrogance with the illusion that infinite data can grant infinite wisdom. It cannot. The more we automate judgment, the less we exercise discernment. The more we simulate consciousness, the less we understand our own.

Yet the Qur’an also teaches that the potential for light lies even in darkness. ‘He brings forth the living from the dead, and the dead from the living’ (30:19). In the same way, the moral potential of technology depends on the hands that wield it. The fire that destroyed Sodom also warmed the hearth of Abraham. The key is niyyah, or intention. In Islamic ethics, an action is judged not by its outcome alone but by the purity of intention behind it. If intention animates worship, could it not also sanctify invention? A technology born from compassion, designed to heal rather than exploit, could itself become an act of devotion, a form of ibadah that extends into the digital realm.

This is not an abstract dream. Across the Muslim world, a quiet renaissance is stirring as scholars, artists, and engineers ask how faith can inform design. In Türkiye, developers have experimented with AI-assisted Qur’an exegesis, not to replace scholars but to map intertextual themes across centuries of commentary. In Indonesia, an initiative called ‘Code for Compassion’ is training young Muslims to embed ethical principles into algorithmic systems, inspired by maqasid al-shariah. In the diaspora, Muslim technologists are building privacy-focused apps that respect human dignity, framing data stewardship as a form of amanah, or trust. These efforts are small but significant. They suggest that the question is not whether Islam can coexist with technology, but whether technology can be re-imagined as a vessel for Islamic virtues.

The challenge is not only technological but theological too. Islam insists that human dignity derives from moral responsibility, that is the capacity to choose rightly. If we offload choice to machines, we erode the very faculty that makes us human. A self-driving car may prevent accidents, but it also removes moral agency from the driver. An AI judge may deliver consistent rulings, but it also removes the possibility of mercy, the divine attribute that transcends mere logic. To be human is to wrestle with the tension between justice and compassion, certainty and doubt, knowledge and faith. Machines do not wrestle; they calculate. And a world that ceases to wrestle ceases to be moral.

This is why the Qur’an presents stories not as fixed answers but as moral laboratories, spaces where human beings confront ambiguity. Joseph forgives his brothers, Moses questions divine justice, and even Iblis, the rebel, debates his Creator. These are not algorithms but encounters, dramas of conscience. When AI begins to mediate such encounters, deciding who receives welfare, who qualifies for parole, who is ‘likely’ to commit sin or crime, then we risk delegating our moral tests to entities incapable of being tested. The fire no longer merely burns, but judges too.

The irony is that the very societies most obsessed with innovation are also those most haunted by emptiness. In Silicon Valley, transhumanists speak of ‘uploading consciousness’ in a modern echo of the ancient quest for immortality. Yet Islam teaches that eternity already resides within the human soul; it is not to be coded but remembered. ‘We created man,’ says the Qur’an, ‘and We know what his soul whispers to him, for We are closer to him than his jugular vein’ (50:16). The machine may map the brain, but it cannot touch that nearness. It may simulate thought, but it cannot taste love. What it replicates in speed, it lacks in meaning.

Perhaps this is where Islam’s perspective on fire offers its deepest wisdom. Fire is not merely a symbol of danger; it is also the element of transformation. The alchemists of the Islamic ‘golden age’, Jabir ibn Hayyan among them, saw fire as a purifying force, capable of turning base metals into gold. But they also knew that alchemy was as much spiritual as chemical, that the true transformation was within the self. In this light, artificial intelligence becomes a new alchemy, an opportunity to purify our collective intentions, to transmute ambition into humility and curiosity into care. For too long, Muslims have been spectators in the global theatre of innovation, consuming what others create. But the Qur’an repeatedly calls believers to be witnesses unto mankind. To witness is not merely to observe but to testify, to offer a moral lens through which the world might see itself. The Muslim engagement with AI must therefore go beyond critique or caution. It must bear witness that knowledge without conscience is chaos, that intelligence without mercy is fire without light.

In the coming decades, as machines grow more autonomous, the temptation will be to equate autonomy with divinity, to see self-learning systems as reflections of creation itself. But Islam reminds us that true autonomy belongs only to God. All else, no matter how powerful, remains dependent, contingent, finite. The believer’s task is not to compete with the Creator but to cooperate with creation. The Prophet said, ‘The world is green and beautiful, and Allah has made you its caretakers’. That khilafah, or stewardship, extends beyond land and sea to the digital domain. To build ethically is to fulfill a spiritual mandate; to code with compassion is to echo the divine names al-Rahman, the Compassionate, and al-Hakim, the Wise.

Still, this stewardship demands vigilance. Every generation inherits its own fire. For some, it was the printing press; for others, the atom. For us, it is artificial intelligence, a flame that can either illuminate a just world or scorch it beyond recognition. The outcome depends on the moral imagination we bring to it. Will we let algorithms dictate destiny, or will we, like Abraham, walk into the fire and make it cool?

To kindle such imagination, Muslims might return to the ancient practice of tafakkur, or deep reflection. The Qur’an repeatedly invites believers to ‘ponder the signs’. To ponder is to pause, to resist the acceleration that defines our digital lives. It is in itself a rebellion against the algorithm. If AI represents the speed of thought, tafakkur represents the stillness of wisdom. Between the two lies the balance that defines a faithful life in a technological age.

The future, then, is not a battlefield between faith and machine, but a dialogue, a long, difficult, necessary conversation about what it means to remain human when our creations begin to mimic us. Perhaps, in that dialogue, the Muslim voice can remind the world of an older truth: that intelligence without reverence leads only to ruin, that progress without purpose is a mirage, and that even in the glow of our brightest screens, we still need the light that no algorithm can generate. For in the end, fire is neither good nor evil. It is what we make of it. And maybe the real miracle of creation is not that we learned to spark fire from stone, or code from silicon, but that, through both, we are continually called to remember the One who breathed light into clay.

There is something unmistakably ancient about humanity’s newest creation. Every time an algorithm learns to predict, optimise, or ‘think’, it reenacts an old story: the moment fire was first tamed, when the clay being stood upright and received breath. The Qur’an describes fire as both divine and dangerous, as the essence from which the jinn were made, and as a test for humankind. Fire illuminates but consumes; it warms the hearth but scorches the careless. Artificial intelligence carries the same paradox; it is the modern fire, a gift of knowledge and an instrument of trial.

Islamic scholars have wrestled with the tension between qadar and ikhtiyar – destiny and freedom of choice for centuries. To what extent does human agency exist in a world foreordained by God? Today, as algorithms predict our desires and decisions before we even voice them, this ancient question takes digital form. If a Muslim’s choices online are constantly nudged by unseen systems, by the ads they see, the sermons that rise on their feed, and the surveillance that watches their prayers, then what becomes of moral accountability? Can a soul still claim ownership of its intention when intention itself has been engineered?

A Malaysian imam once remarked in a Friday sermon that ‘the algorithm has become our new qibla’. The remark was half joke, half lament. The imam meant that many now turn towards their screens before they turn towards the Kaaba. The digital glow that wakes us in the morning and lulls us to sleep at night has become the compass of our attention, a luminous substitute for the sacred direction. And yet even this irony reveals something profound: that fire, once physical, now burns in circuits; that humanity’s oldest metaphor for divine power now lives in code.

Throughout Islamic history, technology was rarely viewed as spiritually neutral. The great polymaths from al-Jazari’s mechanical marvels to Ibn Sina’s metaphysical thought experiments understood invention as an extension of moral order. The question was never merely what could be built, but what should be built. That distinction has blurred in the age of AI, where innovation moves faster than reflection, and where data, not wisdom, has become the new revelation. Perhaps no Qur’anic verse better captures the modern technologist’s predicament, his mastery of function and poverty of meaning, than the one already quoted: ‘they know the outward of this world, but are heedless of the Hereafter’.

There is, however, a countercurrent quietly rising in the Muslim world, that manifests in universities in Doha and Kuala Lumpur, and in start-ups in Dubai and Jakarta, as scholars and developers begin to articulate what an ‘Islamic AI ethic’ might look like. Some frame it through maqasid al-shariah, or the higher objectives of Islamic law, that is the preservation of life, intellect, lineage, property, and faith. Others invoke amanah, the sacred trust of stewardship, arguing that humans are not the owners but the caretakers of creation, and thus are responsible for the tools they unleash. In either case, the underlying impulse is the same: to reclaim the fire before it spreads.

But ethics alone cannot contain the existential tremor AI awakens. For the believer, the machine is a mirror. It reflects not only human intelligence but also human arrogance, the desire to rival divine creation. When scientists speak of ‘synthetic consciousness,’ they echo the Qur’anic story of Iblis, who claimed superiority over Adam because of his fiery origin. ‘I am better than him,’ Iblis said, ‘You created me from fire and him from clay.’ That ancient declaration of pride resonates eerily in the laboratories of Silicon Valley. Once again, fire looks down on clay and calls itself greater. Once again, the act of creation risks becoming an act of defiance.

Yet Islam has never feared knowledge itself, only its misuse. The Prophet Muhammad taught that ‘the ink of the scholar is more sacred than the blood of the martyr’. Knowledge, even when dangerous, is a form of worship when guided by humility. Perhaps the moral crisis of AI lies not in the technology but in the temperament of those who wield it. The Qur’an praises those who ‘walk upon the earth lightly’. But our modern inventors walk heavily, driven by profit and power, eager to burn brighter than anyone before. Fire no longer humbles us; it dazzles us into blindness.

In Muslim-majority societies, this blindness takes a different shape. It is not always the blindness of ambition but of dependency — the quiet surrender to tools designed elsewhere. Most AI systems used in the Arab world or Southeast Asia are imported, built on data that carries Western biases and secular assumptions about human behaviour. To use them uncritically is to accept another civilisation’s philosophy of the soul. The machine, after all, is not just a tool; it is a worldview encoded in code. The danger is subtle: a gradual colonisation of moral imagination, where Muslims begin to see through the lens of algorithms that neither know nor care for their faith.

The story of fire in Islam is also a story of redemption. Fire is not only punishment; it is also purification. When the Prophet Abraham was cast into the fire, God commanded, ‘O fire, be coolness and peace for Abraham’. This moment contains the hope that what burns can also illuminate, that even the fiercest flame can be transformed by divine command. If AI is the new fire, then perhaps the task of believers is not to extinguish it but to cool it, to temper its heat, with ethics, compassion, and the remembrance of God.

To perform the task requires more than regulation or critique; it requires imagination too, a re-enchantment of technology. What would it mean to build machines that remind rather than distract, that cultivate humility instead of ego, that recognise service as the highest form of intelligence? Such a vision would not reject modernity but reinterpret it, as Muslim civilisations once did during their golden age of absorbing foreign knowledge, refining it with spiritual insight, and returning it to the world as light.

This, then, is the deeper challenge of faith in the age of the algorithm: not merely to ask whether machines can think, but also if humans can still believe not only in God, but in their own capacity for moral choice. For if agency is ceded to code, and if conscience is outsourced to computation, then the fire that once lit the lamp of learning may finally consume the very clay it was meant to serve.

In the Qur’an, when God asks Iblis, ‘What prevented you from prostrating when I commanded you?’ Iblis replies, ‘I am better than him’ (7:12). That answer shows pride disguised as reason, which is the origin of our technological sin. Every time we say ‘the machine knows better’, we repeat the words of Iblis. Now the fire of Iblis has moved from heart to hardware, but its logic remains the same.

Islamic ethics has a word for balance: adab. The term means more than manners. It means knowing one’s proper place in relation to God and creation. The scholar should have adab towards knowledge; the ruler towards power; the craftsman towards his craft. Technology without adab is fire without a hearth, uncontained and destructive. To design with adab would mean asking not just can we build this, but should we. It would mean recognising that restraint is also a form of intelligence.

The Prophet Muhammad said, ‘The strong man is not the one who defeats others, but the one who controls himself’. That hadith could be the motto of an ethical AI age. The goal is not infinite capability, but disciplined creativity. Not domination, but discernment.

Some Muslim thinkers are beginning to articulate what this might look like. In Indonesia, scholars are writing about fiqh al-bayanat, or the jurisprudence of data, exploring how privacy and consent fit into Islamic law. In the Gulf, theologians discuss whether algorithmic bias violates the principle of amanah, the sacred trust. Across the Muslim world, small pockets of resistance are emerging among young developers, philosophers, and imams who see in AI not a curse, but a challenge to revive Islam’s intellectual tradition. They believe the Muslim world must not only consume technology, but humanise it.

Perhaps that is the moral task of this century: to civilise the algorithm as Muslims once civilised the sciences. To turn the fire of AI into a source of light, not destruction. To remember that knowledge is sacred only when it bows before wisdom.

In the end, the story of AI is not one of machines. It is about us, the creatures of clay who once learned to name the world and now try to recreate it. Fire is inherently neither good nor evil; it obeys the hand that wields it. The Qur’an says God made fire ‘for you to take warmth from it’. The danger begins when we forget gratitude and treat creation as conquest. Because AI, like fire, can illuminate or incinerate. It can serve or enslave. It can draw us closer to the divine or convince us we are divine. The outcome depends not on the algorithm, but on the heart of the human holding it.

Every prayer begins with the same plea: Guide us to the straight path. That path was never meant to avoid fire; it was meant to lead us through it with awareness. For the most dangerous flame is not in the machine; it is in the human heart that builds it. In that realisation lies our last chance to keep the fire holy.