Yes. In Islam, God forgives every sin, including the gravest, for anyone who sincerely repents before death. The Quran says: "Do not despair of the mercy of Allah. Indeed, Allah forgives all sins" (39:53). The only sin the Quran says will not be forgiven is associating partners with God, and only when a person dies without repenting from it.
Repentance in Islam is called tawbah (tawbah, توبة), which literally means "returning." It needs no priest, no payment and no public confession. It is a private conversation between a person and God, open at any hour. This guide explains what tawbah requires, how to read the hardest verses on forgiveness, and the duas Muslims use to ask for it.
Key takeaways
- Quran 39:53 tells those who have "transgressed against themselves" not to despair, because "Allah forgives all sins."
- Quran 4:48 says God does not forgive shirk (associating partners with Him). Ibn Kathir explains this applies to those who die without repenting from it.
- Sahih al-Bukhari 3470 and Sahih Muslim 2766 record the story of a man who killed 100 people and was still forgiven when he set out to repent.
- The Prophet Muhammad (peace be upon him) called one dua Sayyid al-Istighfar, "the master of seeking forgiveness," in Sahih al-Bukhari 6306.
- The door of repentance stays open until the soul reaches the throat (Jami' at-Tirmidhi 3537, graded hasan) and until the sun rises from the west (Sahih Muslim 2759).
Does God forgive all sins? What Quran 39:53 says
This is often described as the most hopeful verse in the Quran:
Say, "O My servants who have transgressed against themselves [by sinning], do not despair of the mercy of Allah. Indeed, Allah forgives all sins. Indeed, it is He who is the Forgiving, the Merciful."
The verse addresses people who have "transgressed against themselves," a striking way to describe sin. In the Quran's view, sin harms the sinner more than it harms anyone else, and certainly more than it harms God, who needs nothing.
Sahih al-Bukhari 4810 records the background. Some people who had committed murder and adultery many times came to the Prophet and asked whether there was any way to make up for what they had done. Verses from Surah al-Furqan and this verse were revealed in reply. The message was that no past is too heavy to bring back to God.
Ibn Kathir, in his commentary on 39:53, says the verse is "a call to all sinners, be they disbelievers or others, to repent." He adds that God forgives all the sins of those who repent "no matter what or how many his sins are, even if they are like the foam of the sea." The very next verse, 39:54, makes the condition clear: "return [in repentance] to your Lord and submit to Him."
Can Allah forgive shirk?
Shirk (shirk, شرك) means associating partners with God, the opposite of the oneness of God explained in our article on tawheed. Two verses seem at first to clash with 39:53:
Indeed, Allah does not forgive association with Him, but He forgives what is less than that for whom He wills. And he who associates others with Allah has certainly fabricated a tremendous sin.
The same sentence is repeated in 4:116. Classical scholars reconcile the verses by context. Quran 4:48 describes a person who dies while still committing shirk. Quran 39:53 describes a person who repents while alive. Ibn Kathir states this directly: "Shirk can only be forgiven for the one who repents from it."
The proof is history itself. Most of the Prophet's companions had worshipped idols before Islam. They repented, and Muslims regard them as among the best of people. So yes, shirk is forgiven for anyone who turns away from it before death.
The phrase "for whom He wills" in 4:48 also matters. It means that sins other than shirk may be forgiven by God's mercy even without a formal repentance, through good deeds, hardship endured or His grace. That is His choice, not a guarantee, which is why scholars still urge every believer to repent rather than wait.
How to repent in Islam: the conditions of tawbah
Imam an-Nawawi, in the chapter on repentance in Riyad as-Salihin, summarized the conditions scholars agree on.
- Stop the sin. Repentance while continuing the sin is not yet repentance.
- Feel genuine regret. The Prophet said, "Regret is repentance," in Sunan Ibn Majah 4252, graded sahih.
- Resolve not to return to it. This is a sincere intention, not a promise of perfection.
- Restore the rights of others. If the sin wronged a person, such as theft, slander or debt, return what was taken or seek their forgiveness.
Then ask God for forgiveness in your own words or with the duas below. No intermediary is needed. The Quran calls the ideal tawbatan nasuha, "sincere repentance" (66:8).
The reward goes beyond erasing the record. The Quran says of those who repent, believe and do good: "Allah will replace their evil deeds with good" (25:70). And it says plainly: "Allah loves those who are constantly repentant" (2:222).
The man who killed 100 people
The Prophet told a story, recorded in Sahih al-Bukhari 3470 and Sahih Muslim 2766, that has comforted Muslims for centuries.
A man from the Children of Israel had killed ninety-nine people. He went to a monk and asked whether he could still repent. The monk said no, so the man killed him too, making one hundred. He kept asking and was directed to a scholar, who told him that nothing stands between a person and repentance. The scholar told him to leave his town and go to a land where people worshipped God.
The man died on the way. The angels of mercy and the angels of punishment disputed over him. When the distances were measured, he was found closer to the land of the righteous, and the angels of mercy took him.
The lesson is twofold. First, no number of sins closes the door. Second, real repentance includes changing your environment and direction, not just your words.
"I keep repeating the same sin"
This is one of the most common worries Muslims bring to scholars. The hadith literature answers it directly.
In a hadith qudsi recorded in Sahih al-Bukhari 7507, a servant sins and asks forgiveness, and God says: "My slave has known that he has a Lord who forgives sins and punishes for it, I therefore have forgiven my slave." The servant sins again and repents again, and God forgives again. The cycle repeats.
The Prophet also said, "Every son of Adam sins, and the best of the sinners are the repentant," in Jami' at-Tirmidhi 2499, graded hasan. And in Sahih Muslim 2749, he said that if people did not sin, God would replace them with people who would sin, seek forgiveness and be forgiven.
None of this makes sin trivial. Scholars warn against planning to sin while counting on repentance later. But falling again after a sincere repentance does not cancel the first one. The answer to a repeated sin is a repeated return.
| Worry | What the sources say |
|---|---|
| "My sins are too many" | Sins "nearly as great as the earth" are forgiven for one who meets God without shirk (Tirmidhi 3540, graded hasan) |
| "I sinned again after repenting" | God forgives each sincere repentance (Sahih al-Bukhari 7507) |
| "It is too late for me" | Repentance is accepted until the death rattle (Tirmidhi 3537) |
| "I worshipped other than God" | Shirk is forgiven for one who repents before death (Ibn Kathir on 39:53) |
| "I don't feel forgiven" | Regret itself is repentance (Ibn Majah 4252) |
Duas for forgiveness
Sayyid al-Istighfar: the master of seeking forgiveness
The Prophet said whoever says this during the day with firm faith and dies before evening will be among the people of Paradise, and the same for the night. It is recorded in Sahih al-Bukhari 6306.
اللَّهُمَّ أَنْتَ رَبِّي، لاَ إِلَهَ إِلاَّ أَنْتَ، خَلَقْتَنِي وَأَنَا عَبْدُكَ، وَأَنَا عَلَى عَهْدِكَ وَوَعْدِكَ مَا اسْتَطَعْتُ، أَعُوذُ بِكَ مِنْ شَرِّ مَا صَنَعْتُ، أَبُوءُ لَكَ بِنِعْمَتِكَ عَلَىَّ وَأَبُوءُ لَكَ بِذَنْبِي، فَاغْفِرْ لِي، فَإِنَّهُ لاَ يَغْفِرُ الذُّنُوبَ إِلاَّ أَنْتَ
Transliteration: Allahumma anta rabbi, la ilaha illa anta, khalaqtani wa ana 'abduka, wa ana 'ala 'ahdika wa wa'dika mastata'tu, a'udhu bika min sharri ma sana'tu, abu'u laka bi ni'matika 'alayya, wa abu'u laka bi dhanbi, faghfir li, fa innahu la yaghfirudh-dhunuba illa anta.
Translation: "O Allah, You are my Lord. There is no god but You. You created me and I am Your servant, and I keep Your covenant and promise as far as I am able. I seek refuge in You from the evil of what I have done. I acknowledge Your favor upon me, and I acknowledge my sin, so forgive me, for no one forgives sins except You."
The dua of Adam and Hawwa
The first human repentance in the Quran:
They said, "Our Lord, we have wronged ourselves, and if You do not forgive us and have mercy upon us, we will surely be among the losers."
Transliteration: Rabbana zalamna anfusana wa in lam taghfir lana wa tarhamna lanakunanna minal-khasirin.
You can follow Adam's story from creation to repentance on the Adam journey of our timeline.
The dua the Prophet taught Abu Bakr
Abu Bakr asked for a dua to say in his prayer, and the Prophet taught him this, recorded in Sahih al-Bukhari 834.
اللَّهُمَّ إِنِّي ظَلَمْتُ نَفْسِي ظُلْمًا كَثِيرًا وَلاَ يَغْفِرُ الذُّنُوبَ إِلاَّ أَنْتَ، فَاغْفِرْ لِي مَغْفِرَةً مِنْ عِنْدِكَ، وَارْحَمْنِي إِنَّكَ أَنْتَ الْغَفُورُ الرَّحِيمُ
Transliteration: Allahumma inni zalamtu nafsi zulman kathiran, wa la yaghfirudh-dhunuba illa anta, faghfir li maghfiratan min 'indika, warhamni, innaka antal-Ghafurur-Rahim.
Translation: "O Allah, I have wronged myself greatly, and none forgives sins except You, so grant me forgiveness from Yourself and have mercy on me. You are the Forgiving, the Merciful."
Short duas for every day
| Dua | Meaning | Source |
|---|---|---|
| Astaghfirullah wa atubu ilayh | I seek Allah's forgiveness and repent to Him | The Prophet sought forgiveness and repented more than 70 times a day (Sahih al-Bukhari 6307) |
| Rabbi inni zalamtu nafsi faghfir li | My Lord, I have wronged myself, so forgive me | Prophet Musa, Quran 28:16 |
| La ilaha illa anta subhanaka inni kuntu minaz-zalimin | There is no deity except You, exalted are You, I have been of the wrongdoers | Prophet Yunus, Quran 21:87 |
| Allahumma innaka 'afuwwun karimun tuhibbul-'afwa fa'fu 'anni | O Allah, You are Pardoning and Generous, You love to pardon, so pardon me | Taught for Laylat al-Qadr (Tirmidhi 3513, graded sahih by al-Albani) |
| Rabbighfir warham wa anta khayrur-rahimin | My Lord, forgive and have mercy, and You are the best of the merciful | Quran 23:118 |
The Prophet himself sought forgiveness a hundred times a day, according to Sahih Muslim 2702. Our guide to Astaghfirullah explains the phrase and its uses, and the last dua in the table is central to the nights described in our article on Laylatul Qadr.
The names of forgiveness: al-Ghafur, at-Tawwab and al-'Afuww
The Quran describes God's forgiveness through several distinct names, each with its own shade of meaning.
| Name | Meaning | What it adds |
|---|---|---|
| Al-Ghafur | The Great Forgiver | Covers sins and shields the sinner from their consequences |
| Al-Ghaffar | The Forgiving | Forgives again and again, however often a person returns |
| At-Tawwab | The Guide to Repentance | Turns people toward repentance, then accepts it |
| Al-'Afuww | The Pardoner | Erases the sin completely, as if it never happened |
| Ar-Raheem | The Merciful | The mercy behind every act of forgiveness |
At-Tawwab is especially beautiful. Scholars note that God turns toward the servant first, inspiring them to repent, and then turns to them again by accepting it. Even the desire to repent is a gift. Browse all of the Names of Allah for more.
Read the verses of forgiveness on Quran Universe
Read Quran 39:53 with Tafsir Ibn Kathir on Quran Universe, along with the Arabic text and word-by-word meaning. Then read 4:48 and 25:70 to see how the Quran's verses on forgiveness fit together. For more prayers from the Quran itself, see our full list of Rabbana duas.
Frequently asked questions
Does God forgive all sins in Islam?
Yes, for anyone who sincerely repents before death. Quran 39:53 says "Allah forgives all sins" and tells sinners not to despair of His mercy. Even shirk, associating partners with God, is forgiven if a person repents from it while alive. Quran 4:48 refers to those who die still committing shirk without repenting.
How do you repent in Islam?
Stop the sin, regret it sincerely, resolve not to return to it, and if it wronged another person, restore their right or seek their pardon. Then ask God directly for forgiveness. No priest or public confession is needed. These conditions are summarized by Imam an-Nawawi in Riyad as-Salihin, and the Prophet said "regret is repentance" (Ibn Majah 4252).
What is Sayyidul Istighfar?
Sayyid al-Istighfar means "the master of seeking forgiveness." It is a dua beginning "Allahumma anta rabbi, la ilaha illa anta," in which the believer affirms God as Lord, admits their sin and asks forgiveness. According to Sahih al-Bukhari 6306, whoever says it with firm faith and dies that day or night will be among the people of Paradise.
Can Allah forgive shirk?
Yes, if the person repents before death. Quran 4:48 says God does not forgive shirk, but classical scholars such as Ibn Kathir explain that this applies to someone who dies while still associating partners with God. Most of the Prophet's companions had worshipped idols before Islam and were forgiven after accepting faith.
Will God forgive me if I keep committing the same sin?
Yes, as long as each repentance is sincere. In a hadith qudsi in Sahih al-Bukhari 7507, a servant sins and repents repeatedly, and each time God forgives him. Scholars warn against sinning deliberately while planning to repent later, but relapsing after a sincere repentance does not cancel it. The answer is to return again.
What is the best dua for forgiveness?
The Prophet called Sayyid al-Istighfar the best form of seeking forgiveness (Sahih al-Bukhari 6306). Other authentic duas include Adam's dua in Quran 7:23, the dua taught to Abu Bakr in Sahih al-Bukhari 834, and the simple "Astaghfirullah wa atubu ilayh," echoing the Prophet, who sought forgiveness more than 70 times a day (Sahih al-Bukhari 6307).