Surah At-Tawbah, ayah 102

9:102

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

Wa ākharūna'tarafū bidhunūbihim khalatū 'amalan sālihan wa ākhara sayyi'an 'asallāhu an yatūba 'alayhim innallāha ghafūrur rahīm

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

Footnotes

502 This refers to their having previously taken part in jihād but having abstained on the occasion of Tabūk.