Consistent Good Deeds | Good Deeds Erase Bad Deeds.
Narrated `Aisha: Allah’s Messenger (sallallahu ‘alaihi wa sallam) said, “Do good deeds properly, sincerely and moderately and know that your deeds will not make you enter Paradise, and that the most beloved deed to Allah’s is the most regular and constant even though it were little.”
Reference: Bukhari Vol 8 Book 76, Hadith 471
Indeed, good deeds do away with misdeeds.
Reference: Surah Hud 11, 114