(Al-Hajj) 22 : 50
فَالَّذِينَ آمَنُوا وَعَمِلُوا الصَّالِحَاتِ لَهُمْ مَغْفِرَةٌ وَرِزْقٌ كَرِيمٌ
Then those who have believed and did righteous deeds will have forgiveness and noble provision.
The believer only holdfasts Adhikr and propagates It to whole mankind irrespective of nation or religion. So he can convert his offenses that happened before into good deeds as explained in verse 4: 31. See explanation 16: 97; 20: 130-132 and 25: 68-70.