Surah Al-Qasas, ayah 84

28:84

مَن جَآءَ بِٱلۡحَسَنَةِ فَلَهُۥ خَيۡرٞ مِّنۡهَاۖ وَمَن جَآءَ بِٱلسَّيِّئَةِ فَلَا يُجۡزَى ٱلَّذِينَ عَمِلُواْ ٱلسَّيِّـَٔاتِ إِلَّا مَا كَانُواْ يَعۡمَلُونَ ٨٤

Man jā'a bil-hasanati falahū khayrum minhā waman jā'a bis-sayyi'ati falā yujzal-ladhīna 'amilus-sayyi'āti illā mā kānū ya'malūn

Whoever comes [on the Day of Judgement] with a good deed will have better than it; and whoever comes with an evil deed - then those who did evil deeds will not be recompensed except [as much as] what they used to do.