Muhammad 47:2
وَٱلَّذِينَ ءَامَنُوا۟ وَعَمِلُوا۟ ٱلصَّـٰلِحَـٰتِ وَءَامَنُوا۟ بِمَا نُزِّلَ عَلَىٰ مُحَمَّدٍ وَهُوَ ٱلْحَقُّ مِن رَّبِّهِمْ ۙ كَفَّرَ عَنْهُمْ سَيِّـَٔاتِهِمْ وَأَصْلَحَ بَالَهُمْ
Wallatheena amanoowaAAamiloo assalihati waamanoo bimanuzzila AAala muhammadin wahuwa alhaqqu minrabbihim kaffara AAanhum sayyi-atihim waaslahabalahum
And those who believe and do righteous deeds and believe in what has been sent down upon Muḥammad - and it is the truth from their Lord - He will remove from them their misdeeds and amend their condition.
And those who believed and did righteous deeds and believed in that which is revealed to MuHammad,-and it is the truth (that has come) from their Lord-He will write off their evil deeds, and will set aright their state of affairs.