وَآخَرونَ اعتَرَفوا بِذُنوبِهِم خَلَطوا عَمَلًا صالِحًا وَآخَرَ سَيِّئًا عَسَى اللَّهُ أَن يَتوبَ عَلَيهِم ۚ إِنَّ اللَّهَ غَفورٌ رَحيمٌ
And there are those who admit their sins, and they have mixed a righteous deed with another that was bad. Perhaps God will relent towards them. God is Forgiving and Merciful.