Short answer. The Quran says outright that there is no compulsion in religion and never prescribes any worldly punishment for simply ceasing to believe. The classical death penalty for apostasy arose in a world where leaving the faith meant political defection from the community — and many scholars today separate that from a private change of heart.
The objection, stated plainly
Critics point to a well-known feature of classical Islamic law: most pre-modern jurists held that a Muslim man who abandoned Islam and refused to return could be put to death. If that is Islam's teaching, the objection runs, then "no compulsion in religion" is empty — faith held under threat of execution is not free at all. This is a serious charge, and it deserves a serious answer rather than a denial that the classical material exists. It does exist. The honest task is to understand what it was, where it came from, and what the Quran itself actually says.
Start with the Quran
The theological weight of this question rests on the Quran, and the Quran's position on belief is strikingly clear. Faith, it insists, cannot be forced:
"There shall be no compulsion in [acceptance of] the religion. The right course has become clear from the wrong..."
— Quran 2:256 (Saheeh International)1
This is not an isolated line. The Quran repeatedly grounds belief in free choice, and repeatedly tells even the Prophet Muhammad ﷺ that his role is to convey the message, not to coerce acceptance of it:
"And say, 'The truth is from your Lord, so whoever wills — let him believe; and whoever wills — let him disbelieve.'"
— Quran 18:29 (Saheeh International)2
"And had your Lord willed, those on earth would have believed — all of them entirely. Then, [O Muhammad], would you compel the people in order that they become believers?"
— Quran 10:99 (Saheeh International)3
"So remind, [O Muhammad]; you are only a reminder. You are not over them a controller."
— Quran 88:21-22 (Saheeh International)4
For a scripture that is said to mandate killing those who leave, the Quran is remarkable for what it does not contain: nowhere does it prescribe any earthly penalty for disbelief. It warns of consequences in the next life, but it assigns no punishment in this one. This same principle of free, uncoerced faith runs through Islam's understanding of belief itself — see Why one God? and What is sharia, really?.
The classical position, told honestly
None of that erases the classical juristic tradition, and it would be dishonest to pretend it away. Until the modern era, the majority of Sunni and Shia jurists did hold that an adult who publicly renounced Islam and refused to repent was liable to the death penalty. That view rested largely on certain hadith reports rather than on the Quran, and its details were tightly conditioned — typically requiring a prior public profession of faith, a public act of renunciation, and a refusal to reconsider.69
To understand the ruling, historians stress that it has to be placed in its setting. In the pre-modern world — Muslim, Christian, and others alike — religion was not a private matter of individual conscience in the modern sense. Faith was the very fabric of the political and social order; belonging to the community and holding its creed were one and the same thing. In that context, to publicly abandon the faith was not simply to change your mind. It was to defect from the polity itself — closer to what a modern state would call treason than to what we now mean by private conversion. This is why serious academic treatments describe the classical apostasy rule as bound up with the defence of a religiously-defined community, not with policing inner belief.879 The historian John Esposito characterizes the death penalty in the hadith material as a rule enacted in the early community to prevent and punish the equivalent of desertion or treason.8
How mainstream scholarship reads it today
Building on exactly that historical reading, many contemporary Muslim scholars draw a sharp line between two very different things: a private change of personal belief, and a public act of political defection meant to undermine the community. The first, they argue, carries no worldly penalty at all — the Quran's "no compulsion" leaves no room for one. The second is what the classical sources were really addressing.789
On this reading, the reports that speak of punishing the apostate are understood to concern public sedition and defection in wartime — treason against a community under threat — rather than the quiet loss of faith of a private individual. The stability and safety of the community was the interest being protected; the aim was never to force belief onto an unwilling heart.7
The Quran itself supplies a pointed piece of evidence for this. It describes people who cycle in and out of faith — believing, then disbelieving, then believing, then disbelieving again — and it prescribes for them no earthly penalty whatsoever, only a warning about their standing before God:
"Indeed, those who have believed then disbelieved, then believed, then disbelieved, and then increased in disbelief — never will Allah forgive them, nor will He guide them to a way."
— Quran 4:137 (Saheeh International)5
If the mere act of leaving Islam were meant to be met with execution, this verse describing repeated apostasy would have been the natural place to say so. Instead it speaks only of the hereafter.
Where honesty requires acknowledging difference
This is a question on which sincere Muslims genuinely differ. A number of Muslim-majority countries still retain apostasy provisions in their legal codes today, while others have none, and scholars continue to debate the matter openly. It would be false to claim the whole tradition speaks with one voice, either historically or now. What can be said clearly is where the theological center lies: the Quran forbids compulsion in religion, assigns no worldly penalty to private disbelief, and repeatedly casts faith as a free choice. That principle — "there shall be no compulsion in [the acceptance of] the religion" — is the ground on which this whole conversation stands.
In short
Islam's scripture is unambiguous that belief cannot be coerced and lays down no earthly punishment for leaving the faith. The classical death penalty for apostasy came from a pre-modern world where public renunciation meant political defection from the community, and much of contemporary scholarship reads it in exactly those terms — distinguishing private conscience from wartime treason. Muslim legal codes still differ on the question today, but the theological heart of the matter is Quran 2:256: there is no compulsion in religion.