To be accepted, repentance requires giving up the sin and making amends, and Allah alone accepts repentance and forgives sins. These verses also speak of turning back to Allah in repentance (inabah), the command to repent joined to seeking forgiveness, sin committed in ignorance, and repentance that is no longer accepted at the moment of death.
Verses gathered from a topical index of the Quran, in Mushaf order; every verse is quoted in full.
Indeed, those who disbelieve [i.e., reject the message] after their belief and then increase in disbelief - never will their [claimed] repentance be accepted, and they are the ones astray.
But repentance is not [accepted] of those who [continue to] do evil deeds up until, when death comes to one of them, he says, "Indeed, I have repented now," or of those who die while they are disbelievers. For them We have prepared a painful punishment.