Surah Muhammad, ayah 2

47:2

وَٱلَّذِينَ ءَامَنُواْ وَعَمِلُواْ ٱلصَّٰلِحَٰتِ وَءَامَنُواْ بِمَا نُزِّلَ عَلَىٰ مُحَمَّدٖ وَهُوَ ٱلۡحَقُّ مِن رَّبِّهِمۡ كَفَّرَ عَنۡهُمۡ سَيِّـَٔاتِهِمۡ وَأَصۡلَحَ بَالَهُمۡ ٢

Walladhīna āmanū wa'amilus-sālihāti wa āmanū bimā nuzzila 'alā muhammadin wahuwal-haqqu mir rabbihim kaffara 'anhum sayyi'ātihim wa aslaha bālahum

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.