Will Those Who Slander Chaste Women Be Forgiven? (24:5), (24:23)
24:23 pronounces a curse and great punishment on those who slander chaste women. 24:5 says such people can be forgiven. The claim is that these verses directly contradict each other.
The false claim: 24:23 condemns slanderers with no way out, while 24:5 offers them forgiveness - a contradiction.
The key words of 24:5 that resolve this are repent and reform - and the author of the claim passed over them entirely.
[24:23] Surely, those who falsely accuse married women who are pious believers are condemned in this life and in the Hereafter; they have incurred a painful retribution.
This is the consequence for those who commit this sin and do not repent. The curse and punishment described here apply to the unrepentant slanderer. 24:4 details the worldly punishment - eighty lashes and the permanent rejection of their testimony.
[24:5] Except those who repent afterwards and reform. GOD is Forgiver, Most Merciful.
The words after that are precise: after committing the sin and receiving the prescribed punishment. A person who falsely accuses a chaste woman, receives the punishment decreed by God, and then genuinely repents and reforms their conduct is eligible for God's forgiveness. The repentance must be real - the verse specifies both repentance and reform, not repentance alone.
The two verses are not in tension. 24:23 describes the fate of the unrepentant. 24:5 opens the door of mercy for those who turn back sincerely after facing the consequence of what they did. This is entirely consistent with the Quran's broader teaching that God forgives all sins short of shirk for those who genuinely repent during their lifetime:
[39:53] Say, "O My servants who have transgressed against their souls, do not despair of GOD's mercy. For GOD forgives all sins. He is the Forgiver, Most Merciful."
There is no contradiction. One verse states the consequences of the sin for those who persist in it. The other states the mercy available to those who do not.