An angel writes the baby's fate in the womb — 40 days in
Allah's Character Moral Problems Strong Ibn Majah 76"The creation of one of you is put together in his mother's womb for forty days... Then Allah sends the angel to him and commands him to write down four things. He says: 'Write down his deeds, his life span, his provision, and whether he is doomed (destined for Hell) or blessed (destined for Paradise).'"
What the hadith says
Each person's complete destiny — their provision, their lifespan, their specific deeds, and their ultimate eschatological status as wretched or blessed — is inscribed by an angel on the 40-day-old fetus, before any earthly action has been taken and before the person has existed as a moral agent capable of choice.
Why this is a problem
Predestination is set in utero. "Wretched or blessed" is written before the person exists as a moral agent — before the capacity for belief or disbelief has developed, before any religious instruction has been received, before the first act or choice. Punishment for deeds already written by an angel constitutes divine entrapment: a person executing a pre-written script of deeds, with a pre-assigned destination of wretched, cannot bear genuine moral responsibility for that script. The judge who wrote the script has no coherent basis for punishing its execution.
If every deed is pre-written at 40 days, the entire Quranic framework of accountability, repentance, judgment, and eternal consequence operates as theater. The show of judgment on the Day of Judgment, the weighing of deeds, the crossing of the sirat — all of this occurs against a backdrop in which every outcome was already written before any of the actors took the stage. Islamic theology has labored for centuries on this tension and has produced elaborate doctrines (kasb, foreknowledge versus causation) that have never achieved consensus resolution.
The angel's writing of "deeds" — not only outcomes but the specific acts themselves — is the most difficult element. Writing a person's deeds in the womb means the deeds are pre-determined in their content, not merely in their consequences. A religion whose angels write hell-destinations on 40-day-old foetuses alongside the specific acts that will constitute those lives has made accountability retroactive and judgment performative.
The Muslim response
Muslim theologians have engaged this tension systematically. The dominant Ash'ari position, developed by al-Ghazali and later al-Razi, distinguishes between divine foreknowledge and divine causation: Allah knows eternally what each person will freely choose, and the angel's inscription records that foreknowledge without determining the choice. The person still acts freely; Allah simply knows in advance what they will freely do. This preserves both divine omniscience and human moral agency. The kasb (acquisition) doctrine supplements this: humans acquire their acts through genuine will and intention even when those acts occur within a divinely known framework. Maria De Cillis's peer-reviewed monograph documents this as the tradition's primary resolution strategy. Contemporary scholars including Tariq Ramadan argue that the hadith establishes the certainty of divine knowledge rather than the elimination of human freedom, and that Islamic theodicy can accommodate both simultaneously.
Why it fails
The hadith does not say the angel records what Allah knows will happen — it says the angel writes the child's deeds, with a verb describing active inscription of content. The foreknowledge-versus-causation distinction is philosophically important but is not what the text describes: inscription of deeds is not transcription of freely-made future choices, it is the writing of the deeds themselves. The Ash'ari framework resolves the philosophical problem by reinterpreting what the text says, not by what the text actually states.
Maria De Cillis's analysis documents that the kasb doctrine is notoriously opaque — described even within Islamic theology as virtually indistinguishable in its practical implications from hard determinism. Christian apologist Norman Geisler, in Answering Islam: The Crescent in the Light of the Cross (with Abdul Saleeb; 2nd ed., Grand Rapids: Baker Books, 2002), argues that the foreknowledge-without-causation argument fails when applied to the hadith's specific language: a person whose specific deeds are written by an angel before they are born is a person whose deeds are pre-inscribed, not merely pre-known. A religion whose angels inscribe hell-destinations alongside the specific acts that will constitute those lives has a theodicy problem that centuries of Islamic philosophical theology have not resolved, and the ongoing scholarly labor is evidence that the problem is genuine rather than solved.