- Home
- Dua to forgive all sins
Duas
Dua to Forgive All Sins: The Dua of Repentance (Tawbah) for Major and Minor Sins
The Prophet’s ﷺ dua for all sins, the prayer of repentance, the steps of tawbah, and hope for anyone carrying a major sin
A dua to forgive all sins that the Prophet ﷺ said in his prostration is “Allahummaghfir li dhanbi kullahu, diqqahu wa jillahu, wa awwalahu wa akhirahu, wa ‘alaniyatahu wa sirrahu”: O Allah, forgive me all my sins, the small and the great, the first and the last, the open and the secret (Sahih Muslim). No sin is too big for Allah: “Indeed, Allah forgives all sins” (Quran 39:53). What wipes a sin away is sincere repentance, tawbah, of which the dua is one part. This page gives the duas for forgiveness of all sins, the prayer of repentance taught in the Sunnah, the steps of tawbah, and hope for anyone carrying a major sin.

Dua to forgive all sins
((اللَّهُمَّ اغْفِرْ لِي ذَنْبِي كُلَّهُ: دِقَّهُ وَجِلَّهُ، وَأَوَّلَهُ وَآخِرَهُ، وَعَلاَنِيَّتَهُ وَسِرَّهُ)).
(Allahummagh-fir lee thanbee kullah, diqqahu wajillah, wa-awwalahu wa-akhirah, wa- AAalaniyyatahu wa-sirrah.)
(O Allah, forgive me all of my sins, the small and great of them, the first and last of them, and the seen and hidden of them.)
((اللَّهُمَّ اغْفِرْ لِي مَا قَدَّمْتُ، وَمَا أَخَّرْتُ، وَمَا أَسْرَرْتُ، وَمَا أَعْلَنْتُ، وَمَا أَسْرَفْتُ، وَمَا أَنْتَ أَعْلَمُ بِهِ مِنِّي. أَنْتَ الْمُقَدِّمُ، وَأَنْتَ الْمُؤَخِّرُ لاَ إِلَهَ إِلاَّ أَنْتَ)).
(Allahummagh-fir lee ma qaddamtu, wama akhkhart, wama asrartu wama aAAlant, wama asraftt, wama anta aAAlamu bihi minnee, antal-muqaddimu wa-antal-mu-akhkhiru la ilaha illa ant.)
(O Allah, forgive me for those sins which have come to pass as well as those which shall come to pass, and those I have committed in secret as well as those I have made public, and where I have exceeded all bounds as well as those things about which You are more knowledgeable. You are Al-Muqaddim and Al-Mu-akhkhir. None has the right to be worshipped except You.)(Meaning of Al-Muqaddim and Al-Mu-akhkhir: Allah puts forward and favours whom He wills from amongst His creation just as He defers and holds back whom He wills in accordance to His wisdom. E.g. Favouring man over the rest of creation, favouring the Prophets over the rest of mankind, favouring Muhammad over all the Prophets and Messengers…etc.)
The first leaves nothing out: small and great, first and last, seen and hidden. The Prophet ﷺ said it in sujood, where a servant is nearest to his Lord.
The second was among the last words he said in his prayer, between the tashahhud and the salam: forgive me what I did before and what I did after, what I hid and what I showed, what I overdid, and what You know better than I do.
Dua for forgiveness of all sins in your own words
After these duas, name what you regret and ask Allah plainly to forgive it. You do not need special words or a special place; Allah knows what is in your heart.
No sin is too big for Allah to forgive
قُلۡ يَٰعِبَادِيَ ٱلَّذِينَ أَسۡرَفُواْ عَلَىٰٓ أَنفُسِهِمۡ لَا تَقۡنَطُواْ مِن رَّحۡمَةِ ٱللَّهِۚ إِنَّ ٱللَّهَ يَغۡفِرُ ٱلذُّنُوبَ جَمِيعًاۚ إِنَّهُۥ هُوَ ٱلۡغَفُورُ ٱلرَّحِيمُ ٥٣
qul yāʿibādiya alladhīna asrafū ʿalā anfusihim lā taqnaṭū min raḥmati l-lahi inna l-laha yaghfiru l-dhunūba jamīʿan innahu huwa l-ghafūru l-raḥīmu
Say, "O My servants who have transgressed against themselves [by sinning], do not despair of the mercy of Allāh. Indeed, Allāh forgives all sins. Indeed, it is He who is the Forgiving, the Merciful."
وَٱلَّذِينَ لَا يَدۡعُونَ مَعَ ٱللَّهِ إِلَٰهًا ءَاخَرَ وَلَا يَقۡتُلُونَ ٱلنَّفۡسَ ٱلَّتِي حَرَّمَ ٱللَّهُ إِلَّا بِٱلۡحَقِّ وَلَا يَزۡنُونَۚ وَمَن يَفۡعَلۡ ذَٰلِكَ يَلۡقَ أَثَامٗا ٦٨ يُضَٰعَفۡ لَهُ ٱلۡعَذَابُ يَوۡمَ ٱلۡقِيَٰمَةِ وَيَخۡلُدۡ فِيهِۦ مُهَانًا ٦٩ إِلَّا مَن تَابَ وَءَامَنَ وَعَمِلَ عَمَلٗا صَٰلِحٗا فَأُوْلَٰٓئِكَ يُبَدِّلُ ٱللَّهُ سَيِّـَٔاتِهِمۡ حَسَنَٰتٖۗ وَكَانَ ٱللَّهُ غَفُورٗا رَّحِيمٗا ٧٠
wa-alladhīna lā yadʿūna maʿa l-lahi ilāhan ākhara walā yaqtulūna l-nafsa allatī ḥarrama l-lahu illā bil-ḥaqi walā yaznūna waman yafʿal dhālika yalqa athāman yuḍāʿaf lahu l-ʿadhābu yawma l-qiyāmati wayakhlud fīhi muhānan illā man tāba waāmana waʿamila ʿamalan ṣāliḥan fa-ulāika yubaddilu l-lahu sayyiātihim ḥasanātin wakāna l-lahu ghafūran raḥīman
And those who do not invoke with Allāh another deity or kill the soul which Allāh has forbidden [to be killed], except by right, and do not commit unlawful sexual intercourse. And whoever should do that will meet a penalty. Multiplied for him is the punishment on the Day of Resurrection, and he will abide therein humiliated - Except for those who repent, believe and do righteous work. For them Allāh will replace their evil deeds with good. And ever is Allāh Forgiving and Merciful.
Surah Al-Furqan names three of the gravest sins, associating partners with Allah, unjust killing and zina, and then says: “except for those who repent, believe and do righteous work. For them Allah will replace their evil deeds with good.” Repentance does not only erase a sin; it can turn it into good.
The Prophet ﷺ said that one who repents from a sin is like one who has no sin (reported by Ibn Majah).
Dua for forgiveness of major sins
There is no special formula for a major sin. Use the duas on this page, with full repentance. Allah also promises that whoever avoids the major sins will have his smaller ones removed (Surah An-Nisa 4:31).
Dua for forgiveness of zina
If you are carrying this sin, know that the verses above name it and still promise forgiveness and more to the one who repents. Stop it, cut off what leads back to it, and ask Allah to forgive you with the duas above. Scholars advise keeping it between yourself and Allah rather than telling people. Where another person’s rights are involved, ask a trusted scholar privately.
The prayer of repentance
((مَا مِنْ عَبْدٍ يُذنِبُ ذَنْباً فَيُحْسِنُ الطُّهُورَ، ثُمَّ يَقُومُ فَيُصَلِّي رَكْعَتَيْنِ، ثُمَّ يَسْتَغْفِرُ اللَّهَ إِلاَّ غَفَرَ اللَّهُ لَهُ)).
(Any servant who commits a sin and as a result, performs ablution, prays two units of prayer (i.e. two rakAAas) and then seeks Allah’s forgiveness, Allah would forgive him.)
وَٱلَّذِينَ إِذَا فَعَلُواْ فَٰحِشَةً أَوۡ ظَلَمُوٓاْ أَنفُسَهُمۡ ذَكَرُواْ ٱللَّهَ فَٱسۡتَغۡفَرُواْ لِذُنُوبِهِمۡ وَمَن يَغۡفِرُ ٱلذُّنُوبَ إِلَّا ٱللَّهُ وَلَمۡ يُصِرُّواْ عَلَىٰ مَا فَعَلُواْ وَهُمۡ يَعۡلَمُونَ ١٣٥ أُوْلَٰٓئِكَ جَزَآؤُهُم مَّغۡفِرَةٞ مِّن رَّبِّهِمۡ وَجَنَّٰتٞ تَجۡرِي مِن تَحۡتِهَا ٱلۡأَنۡهَٰرُ خَٰلِدِينَ فِيهَاۚ وَنِعۡمَ أَجۡرُ ٱلۡعَٰمِلِينَ ١٣٦
wa-alladhīna idhā faʿalū fāḥishatan aw ẓalamū anfusahum dhakarū l-laha fa-is'taghfarū lidhunūbihim waman yaghfiru l-dhunūba illā l-lahu walam yuṣirrū ʿalā mā faʿalū wahum yaʿlamūna ulāika jazāuhum maghfiratun min rabbihim wajannātun tajrī min taḥtihā l-anhāru khālidīna fīhā waniʿ'ma ajru l-ʿāmilīna
And those who, when they commit an immorality or wrong themselves [by transgression], remember Allāh and seek forgiveness for their sins - and who can forgive sins except Allāh? - and [who] do not persist in what they have done while they know. Those - their reward is forgiveness from their Lord and gardens beneath which rivers flow [in Paradise], wherein they will abide eternally; and excellent is the reward of the [righteous] workers.
Abu Bakr reported that the Prophet ﷺ said: no one commits a sin, then purifies himself well, prays two rakats and asks Allah’s forgiveness, except that Allah forgives him; then he recited the verse of Al-Imran above (reported by Abu Dawud and at-Tirmidhi). This is often called salat at-tawbah.
How to pray it
- Make wudu: carefully and fully.
- Pray two rakats: an ordinary voluntary prayer, outside the times when prayer is disliked.
- Ask for forgiveness: in sujood and after the salam, with the duas on this page and in your own words.
The steps of tawbah
Scholars describe sincere repentance in these steps:
- Stop the sin: leave it now, not later.
- Regret it: the Prophet ﷺ said, “Regret is repentance” (reported by Ibn Majah).
- Resolve not to return: a firm intention, even if you fear your own weakness.
- Put right what you owe people: return what you took, or ask their pardon. A wrong done to a person is not erased by dua alone.
- Repent in time: Allah accepts repentance until the death rattle (reported by at-Tirmidhi), so do not delay.
If you fall back into the sin
In a hadith qudsi, a servant sins and says, “My Lord, forgive me”, and Allah says: My servant knows he has a Lord who forgives sins and holds to account for them; I have forgiven him. The servant sins again and repents again, and each time Allah forgives (Sahih al-Bukhari and Sahih Muslim). Keep returning.
Good deeds that wipe away sins
قَالَ صلى الله عليه وسلم مَنْ قَالَ: سُبْحَانَ اللَّهِ وَبِحَمْدِهِ فِي يَوْمٍ مِائَةَ مَرَّةٍ حُطَّتْ خَطَايَاهُ وَلَوْ كَانَتْ مِثْلَ زَبَدِ الْبَحْر)).
(Whoever says:(Subhanal-lahi wabihamdih.) a hundred times during the day, his sins are wiped away, even if they are like the foam of the sea.)
(Whoever says:(How perfect Allah is and I praise Him.) a hundred times during the day, his sins are wiped away, even if they are like the foam of the sea.)
- Wudu and prayer: the Prophet ﷺ compared the five prayers to a river at your door in which you bathe five times a day (Sahih al-Bukhari and Sahih Muslim).
- Fasting Ramadan: with faith and hope of reward, it brings forgiveness of past sins (Sahih al-Bukhari and Sahih Muslim).
- Charity: it puts out sin as water puts out fire (reported by at-Tirmidhi).
- Dhikr: “Subhanallahi wa bihamdihi” a hundred times a day wipes away sins, even if they are like the foam of the sea.
Written for DonateOpenly from the sources it cites, and awaiting review by ulama. Dates are worked out from the Islamic calendar and depend on the moon sighting.
Choose a charity, then give on its own website
Every registered UK Muslim charity has a page on DonateOpenly: what it does, where its work reaches people and where donors review it.
Dua to forgive all sins: questions
What is the dua to forgive all sins?
“Allahummaghfir li dhanbi kullahu, diqqahu wa jillahu, wa awwalahu wa akhirahu, wa ‘alaniyatahu wa sirrahu”: O Allah, forgive me all my sins, small and great, first and last, open and secret. The Prophet ﷺ said it in sujood (Sahih Muslim).
What is the dua of repentance?
The simplest is “Astaghfirullaha wa atubu ilayh”, I seek Allah’s forgiveness and turn to Him in repentance, which the Prophet ﷺ said a hundred times a day. Repentance also means stopping the sin, regretting it and resolving not to return.
Can major sins be forgiven?
Yes. “Indeed, Allah forgives all sins” (Quran 39:53), and Surah Al-Furqan promises that those who repent from even the gravest sins will have their evil deeds replaced with good (Quran 25:70).
Is there a dua for forgiveness of zina?
There is no special dua; sincere tawbah is the way. Quran 25:68-70 names zina among the gravest sins and still promises forgiveness to those who repent, believe and do good.
Will Allah forgive me if I keep repeating the same sin?
Keep repenting. In a hadith qudsi, a servant sins and repents again and again, and each time Allah forgives him (Sahih al-Bukhari and Sahih Muslim). Each repentance must be sincere.
Do I need to confess my sins to anyone?
No. In Islam you repent to Allah directly, with no one in between, and scholars advise keeping your sins covered rather than telling people about them.