Yes. When you sincerely accept Islam, every sin you committed before it is forgiven. The Prophet ﷺ said that Islam wipes out whatever came before it, and the Quran goes further: for those who repent, believe and do good, Allah replaces their bad deeds with good ones. The one thing that isn't wiped away on its own is what you owe other people, such as a debt or something you took.
That's the answer. Below are the actual texts, so you can read them for yourself, along with the questions people usually ask next: does this cover the really serious things, what about money I owe, and what if I'm not ready to give up a sin yet?
What the Prophet ﷺ told 'Amr ibn al-'As
'Amr ibn al-'As spent years as an enemy of the Prophet ﷺ. By his own account, there was nobody he hated more. When he finally came to accept Islam, he asked the Prophet ﷺ to stretch out his hand so he could give his pledge. The Prophet ﷺ did, and 'Amr pulled his own hand back. He wanted a condition first: that his past would be forgiven. The Prophet ﷺ answered him:
Are you not aware of the fact that Islam wipes out all the previous (misdeeds)? Verily migration wipes out all the previous (misdeeds), and verily the pilgrimage wipes out all the (previous) misdeeds.
'Amr ibn al-'As, telling the story on his deathbed. Shortened.
Notice what 'Amr was worried about. It wasn't small things. He'd fought the Muslims and wanted the Prophet ﷺ dead. And the answer wasn't "we'll see" or "it depends". It was a plain statement that Islam wipes the slate.
Another hadith says what happens next:
If a person embraces Islam sincerely, then Allah shall forgive all his past sins, and after that starts the settlement of accounts, the reward of his good deeds will be ten times to seven hundred times for each good deed and one evil deed will be recorded as it is unless Allah forgives it.
Narrated by Abu Sa'id al-Khudri.
So the record starts again from your shahada, and the new record is generous: good deeds are multiplied, and a bad deed counts only once.
Bad deeds turned into good
This is the part that surprises people. In Surah al-Furqan, Allah lists some of the gravest sins there are: worshipping others besides Him, killing, and unlawful sex. Then He makes an exception:
وَٱلَّذِينَ لَا يَدْعُونَ مَعَ ٱللَّهِ إِلَـٰهًا ءَاخَرَ وَلَا يَقْتُلُونَ ٱلنَّفْسَ ٱلَّتِى حَرَّمَ ٱللَّهُ إِلَّا بِٱلْحَقِّ وَلَا يَزْنُونَۚ وَمَن يَفْعَلْ ذَٰلِكَ يَلْقَ أَثَامًا ٦٨
68And 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.
يُضَـٰعَفْ لَهُ ٱلْعَذَابُ يَوْمَ ٱلْقِيَـٰمَةِ وَيَخْلُدْ فِيهِۦ مُهَانًا ٦٩
69Multiplied for him is the punishment on the Day of Resurrection, and he will abide therein humiliated -
إِلَّا مَن تَابَ وَءَامَنَ وَعَمِلَ عَمَلًا صَـٰلِحًا فَأُو۟لَـٰٓئِكَ يُبَدِّلُ ٱللَّهُ سَيِّـَٔاتِهِمْ حَسَنَـٰتٍۗ وَكَانَ ٱللَّهُ غَفُورًا رَّحِيمًا ٧٠
70Except 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.
Translation: Saheeh International. Recitation: Mishary al-Afasy.
"For them Allah will replace their evil deeds with good." That's not only a clean slate. It's a slate with something written on it in your favor. The ayah names repentance, belief and righteous work together, which is exactly what taking your shahada and then living as a Muslim is.
Allah speaks to those who hadn't yet believed in another ayah too:
قُل لِّلَّذِينَ كَفَرُوٓا۟ إِن يَنتَهُوا۟ يُغْفَرْ لَهُم مَّا قَدْ سَلَفَ وَإِن يَعُودُوا۟ فَقَدْ مَضَتْ سُنَّتُ ٱلْأَوَّلِينَ ٣٨
Say to those who have disbelieved [that] if they cease, what has previously occurred will be forgiven for them. But if they return [to hostility] - then the precedent of the former [rebellious] peoples has already taken place.
Translation: Saheeh International. Recitation: Mishary al-Afasy.
"If they cease, what has previously occurred will be forgiven for them." The door is open to anyone, whatever they did before.
Even the good you did before counts
Hakim ibn Hizam gave charity, freed slaves and looked after his relatives before he became Muslim. After accepting Islam, he asked the Prophet ﷺ whether any of that counted. The answer:
You became Muslim with all those good deeds (Without losing their reward).
Narrated by Hakim ibn Hizam. Shortened.
So the bad is wiped out and the good is kept. If you were kind to your parents, generous with your money or honest in your work before you were Muslim, you didn't lose any of it.
What isn't wiped away: what you owe people
Your shahada clears what's between you and Allah. It doesn't cancel what's between you and another person. If you borrowed money, the debt is still owed. If you took something that wasn't yours, it should go back to its owner if that's possible. If you wronged someone, the way to settle it is with them.
The Prophet ﷺ was clear that these rights don't disappear on their own:
Whoever has oppressed another person concerning his reputation or anything else, he should beg him to forgive him before the Day of Resurrection when there will be no money (to compensate for wrong deeds)
Narrated by Abu Hurairah. Shortened.
- Debts: carry on paying them as you agreed. Becoming Muslim doesn't change a contract you made.
- Things you took: return them or their value if you can. If the owner can't be found, scholars advise giving the value in charity on their behalf.
- Harm to someone's name or feelings: where it's safe and wise to do so, apologize. Where it isn't, make du'a for them and speak well of them.
What you don't owe is the worship you missed before Islam. There's no making up years of prayer or fasting from before your shahada. We've written about this in missed prayers before and after shahada.
"But what I did was too much"
Some people read all this and still think they're the exception. Their past feels too dark for any of it to apply. Allah addresses that thought directly:
۞ قُلْ يَـٰعِبَادِىَ ٱلَّذِينَ أَسْرَفُوا۟ عَلَىٰٓ أَنفُسِهِمْ لَا تَقْنَطُوا۟ مِن رَّحْمَةِ ٱللَّهِۚ إِنَّ ٱللَّهَ يَغْفِرُ ٱلذُّنُوبَ جَمِيعًاۚ إِنَّهُۥ هُوَ ٱلْغَفُورُ ٱلرَّحِيمُ ٥٣
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."
Translation: Saheeh International. Recitation: Mishary al-Afasy.
"Indeed, Allah forgives all sins." The ayah is addressed to people who have "transgressed against themselves", which is to say, people who sinned. It's for you, not for some cleaner version of you.
Feeling sorry about the past is good. It means your heart is alive. But it shouldn't turn into despair, because despair of Allah's mercy is itself something the Quran warns against. When the regret comes back, and it will now and then, turn it into a du'a and a good deed, and move on.
Can I take shahada while I'm still struggling with a sin?
Yes. The shahada isn't a promise that you'll never sin again. No Muslim is sinless, including the ones who were born into Islam. It's a statement of belief: that there's no god but Allah and that Muhammad ﷺ is His Messenger. If you believe that, you can say it.
What the shahada does mean is that you accept that the sin is a sin. You're not saying it's fine; you're saying you know it's wrong and you're going to work on it. That's a very different place to stand from denying it's wrong at all.
There's a hadith about a Companion who was punished more than once for drinking. When someone cursed him for it, the Prophet ﷺ stopped them:
Do not curse him, for by Allah, I know for he loves Allah and His Apostle.
Narrated by 'Umar ibn al-Khattab. Shortened.
He was still a Muslim, still struggling, and still loved by Allah and His Messenger. If you're waiting to be perfect before you take your shahada, you'll wait forever. Take it, and fight the sin as a Muslim, with prayer on your side.
If you're thinking about taking your shahada and want to know what it involves, read how to convert to Islam. It's short, and there's no waiting period.
What about sins after shahada?
You will sin after becoming Muslim. Everyone does. The way back is tawbah, repentance, and it's open until your last breath. Repentance means three things: stopping the sin, regretting it, and resolving not to go back to it. If the sin involved someone else's rights, you put those right too.
Then you carry on. A Muslim who sins and repents, again and again, is doing what Allah asked. The ayah right after the one about bad deeds being replaced with good says it plainly:
وَمَن تَابَ وَعَمِلَ صَـٰلِحًا فَإِنَّهُۥ يَتُوبُ إِلَى ٱللَّهِ مَتَابًا ٧١
And he who repents and does righteousness does indeed turn to Allāh with [accepted] repentance.
Translation: Saheeh International. Recitation: Mishary al-Afasy.
Our free course The Shahada goes through the testimony line by line: what each word means, what it rules out, and what it asks of you each day. It's the first course in the New Muslim Foundations path, and it's a good place to start if you've just taken your shahada or are close to it.
Questions people ask
Are all sins forgiven when you convert to Islam?
Yes. Sins between you and Allah are forgiven when you sincerely accept Islam (Sahih Muslim 121, Sahih al-Bukhari 41). Rights owed to other people, such as debts, still have to be settled.
If I say the shahada, will I be saved?
The shahada said sincerely is the key to Islam, and the Prophet ﷺ promised that it wipes out what came before. From then on you live as a Muslim: you pray, repent when you get things wrong, and trust Allah's mercy. Nobody but Allah knows anyone's end, so Muslims live with hope and care at the same time.
Does Islam wipe out past sins, even big ones?
Yes. 'Amr ibn al-'As had fought the Prophet ﷺ himself, and was told Islam wipes out everything before it. Surah al-Furqan names shirk, killing and unlawful sex, then says Allah replaces the bad deeds of those who repent with good.
Can I convert if I'm not ready to give up a sin?
Yes. Shahada isn't conditional on being sinless. You accept that the sin is wrong and work on leaving it as a Muslim, with prayer and repentance to help you.
Do I still have to pay debts after becoming Muslim?
Yes. Debts and other rights owed to people aren't cancelled by accepting Islam. Ask an imam about complicated cases such as interest-bearing loans taken before Islam.
Do I have to make up prayers from before Islam?
No. Prayers and fasts from before your shahada aren't owed. Your obligations start from the day you became Muslim.





