Hadith on Tawbah: Good deeds expiate past sins

Abu Dharr reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever does good in what remains of his life, he will be forgiven for what has passed. Whoever does evil in what remains of his life, he will be seized for what has passed and what remains.

Source: al-Mu’jam al-Awsaṭ 6806

Grade: Hasan (fair) according to Al-Albani

عَنْ أَبِي ذَرٍّ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ مَنْ أَحْسَنَ فِيمَا بَقِيَ غُفِرَ لَهُ مَا مَضَى وَمَنْ أَسَاءَ فِيمَا بَقِيَ أُخِذَ بِمَا مَضَى وَمَا بَقِيَ

6806 المعجم الأوسط

3156 المحدث الألباني خلاصة حكم المحدث حسن في صحيح الترغيب