إِلَّا مَن تَابَ وَءَامَنَ وَعَمِلَ عَمَلًۭا صَٰلِحًۭا فَأُو۟لَٰٓئِكَ يُبَدِّلُ ٱللَّهُ سَيِّـَٔاتِهِمْ حَسَنَٰتٍۢ ۗ وَكَانَ ٱللَّهُ غَفُورًۭا رَّحِيمًۭا٧٠
except those who repent and believe, and do righteous deeds; for them Allah will change their evil deeds into good deeds, for Allah is All-Forgiving, Most Merciful.
[ ↗ Study from physical print edition ]Except for those who repent, believe and do righteous work. For them Allah will replace their evil deeds with good. And ever is Allah Forgiving and Merciful.
[ ↗ Study from physical print edition ](And those who cry not unto any other god along with Allah)" [25:68-70]. Abu Ishaq al-Tha'alibi informed us> al-Hasan ibn Ahmad al-Makhladi> al-Mu'ammil ibn al-Hasan ibn 'Isa> al-Hasan ibn Muhammad ibn al-Sabbah al-Za'farani> Hajjaj> Ibn Jurayj> Ya'la ibn Muslim> Sa'id ibn Jubayr> Ibn 'Abbas who said: "Some idolaters who had committed many murders and fornicated numerous times went to the Messenger of Allah, Allah bless him and give him peace, and said: "What you say and call for is good, if only you could inform us whether there is any expiation for the things we have committed". As a response, this verse was revealed (And those who cry not unto any other god along with Allah) up to His words (Allah is ever Forgiving, Merciful) [25:70]". This was narrated by Muslim> Ibrahim ibn Dinar> Hajjaj. Muhammad ibn Ibrahim ibn Yahya al-Muzakki informed us> his father> Muhammad ibn Ishaq al-Thaqafi> Ibrahim al-Hanzali and Muhammad ibn al-Sabbah> Jarir> Mansur and al-A'mash> Abu Wa'il> 'Amr ibn Shurahbil> Abu Maysarah> 'Abd Allah ibn Mas'ud who said: "I asked the Messenger of Allah, Allah bless him and give him peace: "What is the greatest sin?" He said: "It is to ascribe an equal to Allah when it is Him Who has created you". I asked: "What comes after that?" he said: "It is to kill your child for fear that he might compete with you over food". I asked: "What comes after that?" he said: "It is to commit adultery with the wife of your neighbour". Allah, exalted is He, then revealed these verses to confirm his answers (And those who cry not unto any other god along with Allah, nor take the life which Allah hath forbidden save in (course of) justice, nor commit adultery)". This was narrated by Bukhari> Musaddid> Yahya and also by Muslim> 'Uthman ibn Abi Shaybah> Jarir. Abu Bakr ibn al-Harith informed us> 'Abd Allah ibn Muhammad ibn Ja'far> Ahmad ibn Muhammad ibn Ibrahim> Isma'il ibn Ishaq> al-Haruth ibn al-Zubayr> Abu Rashid, the client of al-Lahibiyyin> Sa'id ibn Salim al-Qaddah> Ibn Jurayh> 'Ata'> Ibn 'Abbas who said: "Wahshiyy went to the Messenger of Allah, Allah bless him and give him peace, and said: "I came to you seeking sanctuary; so grant me sanctuary in order that I can hear the speech of Allah".
70. But those who repent to Allah and do good deeds that indicate the sincerity of their repentance, then Allah will change the evil deeds of such people into good ones. Allah is Forgiving of the sins of those of His servants who repent and He is Merciful towards them.
except for him who repents and believes and acts righteously from among them for such God will replace their mentioned evil deeds with good deeds in the Hereafter for God is ever Forgiving Merciful that is He is ever possessed of such attributes;
The next verse mentions some details of the punishment to be faced by the aforementioned sinners. In the context of these verses it is certain that this chastisement will be exclusive to those who were infidels and also indulged in adultery or homicide. In the first place the phrase يُضَاعَفْ لَهُ الْعَذَابُ (The punishment will be doubled for him - 69) cannot be applied on Muslim sinners because they are told both in the Qur'an and in the Sunnah that they will get only one punishment against a sin. Any increase in the intensity of chastisement will not be in the case of believers. Doubling of chastisement will be exclusive to infidels i.e. the first chastisement will be for infidelity and in case they have also committed sins the chastisement will be doubled. Secondly, it is also mentioned about this chastisement that it will be perpetual وَيَخْلُدْ فِيهِ مُهَانًا - 25:69) i.e. the punished will be placed there forever after being disgraced and condemned. On the other hand no believer will be condemned for ever in the Jahannam, no matter how big a sin he has committed. Muslims will be taken out of the Jahannam when they have completed their term there. In brief, those infidels who reject monotheism and also commit adultery and homicide will be awarded doubled chastisement which will increase in intensity and will last forever. In the next verse there is a solace for the above type of sinners in that if they seek Allah's forgiveness and act righteously, then Allah Ta’ ala is expected to change their sins into righteous deeds. In other words, once they have repented on their past sins and accepted Islam, their past sins will be taken away from their record and all that will be left in the record would be nothing but righteous deeds. It is because Allah Ta'ala has promised that when an infidel accepts Islam, all sins he might have committed during infidelity are pardoned. Hence their previous record which was full of sins and evil deeds will be forgiven and scraped, and will be replaced with a fresh record of good and righteous deeds which they would perform after submitting to Islam. This explanation of conversion of sins into virtues is given by Sayyidna Ibn ` Abbas ؓ ، Hasan al-Basri, Said Ibn Jubair and Mujahid رحمۃ اللہ علیہم (Mazhari).Ibn Kathir has given another explanation for conversion of sins into virtues. He says that when they will remember all those sins which they had committed during the period of their infidelity, they will repent and seek Allah's forgiveness. This act of repentance will replace their sins into virtues. In support of this explanation some traditions have also been quoted.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)قَوْلُهُ تَعَالَى: ﴿إِلَّا مَنْ تابَ وَآمَنَ وَعَمِلَ عَمَلًا صالِحاً﴾ لَا خِلَافَ بَيْنَ الْعُلَمَاءِ أَنَّ الِاسْتِثْنَاءَ عَامِلٌ فِي الْكَافِرِ وَالزَّانِي. وَاخْتَلَفُوا فِي الْقَاتِلِ مِنَ الْمُسْلِمِينَ عَلَى مَا تَقَدَّمَ بَيَانُهُ فِي "النِّسَاءِ" [[راجع ج ٥ ص ٣٣٢ وما بعدها طبعه أولى أو ثانية.]] وَمَضَى فِي "الْمَائِدَةِ" [[راجع ج ٦ ص ٢٧٣ طبعه أولى أو ثانية.]] الْقَوْلُ فِي جَوَازِ التَّرَاخِي فِي الِاسْتِثْنَاءِ فِي الْيَمِينِ، وَهُوَ مَذْهَبُ ابْنِ عَبَّاسٍ مُسْتَدِلًّا بِهَذِهِ الْآيَةِ. قَوْلُهُ تَعَالَى: ﴿فَأُوْلئِكَ يُبَدِّلُ اللَّهُ سَيِّئاتِهِمْ حَسَناتٍ﴾ قَالَ النَّحَّاسُ: مِنْ أَحْسَنِ مَا قِيلَ فِيهِ أَنَّهُ يُكْتَبُ مَوْضِعَ كَافِرٍ مُؤْمِنٌ، وَمَوْضِعَ عَاصٍ مُطِيعٌ. وَقَالَ مُجَاهِدٌ وَالضَّحَّاكُ: أَنْ يُبَدِّلَهُمُ اللَّهُ مِنَ الشِّرْكِ الْإِيمَانَ وَرُوِيَ نَحْوُهُ عَنِ الْحَسَنِ. قَالَ الْحَسَنُ: قَوْمٌ يَقُولُونَ التَّبْدِيلُ فِي الآخرة، وليس كذلك، إنما لتبديل فِي الدُّنْيَا، يُبَدِّلُهُمُ اللَّهُ إِيمَانًا مِنَ الشِّرْكِ، وَإِخْلَاصًا مِنَ الشَّكِّ، وَإِحْصَانًا مِنَ الْفُجُورِ. وَقَالَ الزَّجَّاجُ: لَيْسَ بِجَعْلِ مَكَانِ السَّيِّئَةِ الْحَسَنَةَ، وَلَكِنْ بِجَعْلِ مَكَانَ السَّيِّئَةِ التَّوْبَةَ، وَالْحَسَنَةُ مَعَ التَّوْبَةِ. وَرَوَى أَبُو ذَرٍّ عَنِ النَّبِيِّ ﷺ: (أَنَّ السَّيِّئَاتِ تُبَدَّلُ بِحَسَنَاتٍ". وَرُوِيَ مَعْنَاهُ عَنْ سَلْمَانَ الْفَارِسِيِّ وَسَعِيدِ بْنِ جُبَيْرٍ غيرهما. وَقَالَ أَبُو هُرَيْرَةَ: ذَلِكَ فِي الْآخِرَةِ فِيمَنْ غَلَبَتْ حَسَنَاتُهُ عَلَى سَيِّئَاتِهِ، فَيُبَدِّلُ اللَّهُ السَّيِّئَاتِ حَسَنَاتٍ. وَفِي الْخَبَرِ: "لَيَتَمَنَّيَنَّ أَقْوَامٌ أَنَّهُمْ أَكْثَرُوا مِنَ السَّيِّئَاتِ" فَقِيلَ: وَمَنْ هُمْ؟ قَالَ: "الَّذِينَ يُبَدِّلُ اللَّهُ سَيِّئَاتِهِمْ حَسَنَاتٍ". رَوَاهُ أَبُو هُرَيْرَةَ عَنِ النَّبِيِّ ﷺ، ذَكَرَهُ الثَّعْلَبِيُّ وَالْقُشَيْرِيُّ. وَقِيلَ: التَّبْدِيلُ عِبَارَةٌ عَنِ الْغُفْرَانِ، أَيْ يَغْفِرُ اللَّهُ لَهُمْ تِلْكَ السَّيِّئَاتِ لَا أَنْ يُبَدِّلَهَا حَسَنَاتٍ. قُلْتُ: فَلَا يَبْعُدُ فِي كَرَمِ اللَّهِ تَعَالَى إِذَا صَحَّتْ تَوْبَةُ الْعَبْدِ أَنْ يَضَعَ مَكَانَ كُلِّ سَيِّئَةٍ حَسَنَةً، وَقَدْ قَالَ ﷺ لِمُعَاذٍ: "أَتْبِعِ السَّيِّئَةَ الْحَسَنَةَ تَمْحُهَا وَخَالِقِ النَّاسَ بِخُلُقٍ حَسَنٍ". وَفِي صَحِيحِ مُسْلِمٌ عَنْ أَبِي ذَرٍّ قَالَ: قَالَ رَسُولُ اللَّهِ ﷺ: "إني لا علم آخِرَ أَهْلِ الْجَنَّةِ دُخُولًا الْجَنَّةَ وَآخِرَ أَهْلِ النَّارِ خُرُوجًا مِنْهَا رَجُلٌ يُؤْتَى بِهِ يَوْمَ الْقِيَامَةِ فَيُقَالُ اعْرِضُوا عَلَيْهِ صِغَارَ ذُنُوبِهِ وَارْفَعُوا عَنْهُ كِبَارَهَا فَتُعْرَضُ عَلَيْهِ صِغَارُ ذُنُوبِهِ فَيُقَالُ عَمِلْتَ يَوْمَ كَذَا وَكَذَا كَذَا وَكَذَا وَعَمِلْتَ يَوْمَ كَذَا وَكَذَا كَذَا وَكَذَا فَيَقُولُ نَعَمْ لَا يَسْتَطِيعُ أَنْ يُنْكِرَ وَهُوَ مُشْفِقٌ فِي كِبَارِ ذُنُوبَهُ أَنْ تُعْرَضَ عَلَيْهِ فَيُقَالُ لَهُ فَإِنَّ لَكَ مَكَانَ كُلِّ سَيِّئَةٍ حَسَنَةً فَيَقُولُ يَا رَبِّ قَدْ عَمِلْتُ أَشْيَاءَ لَا أَرَاهَا ها هنا" فَلَقَدْ رَأَيْتُ رَسُولَ اللَّهِ ﷺ ضَحِكَ حَتَّى بَدَتْ نَوَاجِذُهُ. وَقَالَ أَبُو طَوِيلٍ [[أبو طويل: كنية شطب المدود، رجل من كندة.]]: يَا رَسُولَ اللَّهِ، أَرَأَيْتَ رَجُلًا عَمِلَ الذُّنُوبَ كُلَّهَا وَلَمْ يَتْرُكْ مِنْهَا شَيْئًا، وَهُوَ فِي ذَلِكَ لَمْ يَتْرُكْ حَاجَّةً وَلَا دَاجَّةً إِلَّا اقْتَطَعَهَا فَهَلْ لَهُ مِنْ تَوْبَةٍ؟ قَالَ: "هَلْ أَسْلَمْتَ"؟ قَالَ: أَنَا أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللَّهُ وَحْدَهُ لَا شريك له، وَأَشْهَدُ أَنَّكَ عَبْدُ اللَّهِ وَرَسُولُهُ. قَالَ:" نَعَمْ. تَفْعَلُ الْخَيْرَاتِ وَتَتْرُكُ السَّيِّئَاتِ يَجْعَلُهُنَّ اللَّهُ كُلَّهُنَّ خَيْرَاتٍ". قَالَ: وَغَدَرَاتِي وَفَجَرَاتِي يَا نَبِيَّ اللَّهِ؟ قَالَ: "نَعَمْ". قَالَ: اللَّهُ أَكْبَرُ! فَمَا زَالَ يُكَرِّرُهَا حَتَّى تَوَارَى. ذَكَرَهُ الثَّعْلَبِيُّ. قَالَ مُبَشَّرُ ابن عُبَيْدٍ، وَكَانَ عَالِمًا بِالنَّحْوِ وَالْعَرَبِيَّةِ: الْحَاجَّةُ الَّتِي تُقْطَعُ عَلَى الْحَاجِّ إِذَا تَوَجَّهُوا. وَالدَّاجَّةُ الَّتِي تُقْطَعُ عَلَيْهِمْ إِذَا قَفَلُوا. (وَكَانَ اللَّهُ غَفُورًا رحيما).