Surah At-Tawba

9:102

وَءَاخَرُونَ ٱعْتَرَفُوا۟ بِذُنُوبِهِمْ خَلَطُوا۟ عَمَلًۭا صَٰلِحًۭا وَءَاخَرَ سَيِّئًا عَسَى ٱللَّهُ أَن يَتُوبَ عَلَيْهِمْ ۚ إِنَّ ٱللَّهَ غَفُورٌۭ رَّحِيمٌ

And [there are] others who have acknowledged their sins. They had mixed a righteous deed with another that was bad. Perhaps Allah will turn to them in forgiveness. Indeed, Allah is Forgiving and Merciful.

Tafsir 9:102

There are others from among the people of Medina who stayed behind from the battle without any valid excuse. They then confessed that they had no excuse and they did not present false excuses. They have mixed their prior good actions of following Allah, obeying His sacred laws and striving in His path with an evil action; yet they hope that Allah will accept their repentance and pardon them. Allah is Forgiving and Compassionate towards those of His servants who repent to Him.