Qur'an 39:35
لِيُكَفِّرَ ٱللَّهُ عَنْهُمْ أَسْوَأَ ٱلَّذِى عَمِلُوا۟ وَيَجْزِيَهُمْ أَجْرَهُم بِأَحْسَنِ ٱلَّذِى كَانُوا۟ يَعْمَلُونَ
“That Allāh may remove from them the worst of what they did and reward them their due for the best of what they used to do.”
Az-Zumar 39:35 · Saheeh International