Allah says in surah al-Zumar [39]:
[قُلْ يَا عِبَادِيَ الَّذِينَ أَسْرَفُوا عَلَىٰ أَنفُسِهِمْ لَا تَقْنَطُوا مِن رَّحْمَةِ اللَّهِ ۚ إِنَّ اللَّهَ يَغْفِرُ الذُّنُوبَ جَمِيعًا ۚ إِنَّهُ هُوَ الْغَفُورُ الرَّحِيمُ]
Say: O My servants who have wronged themselves, do not despair of Allah's mercy. Allah forgives all sins. He is certainly Forgiving, Merciful. [53]
Commenting on this, ibn Kathir wrote:
[ وقال تعالى : ( قل يا عبادي الذين أسرفوا على أنفسهم لا تقنطوا من رحمة الله [ إن الله يغفر الذنوب جميعا إنه هو الغفور الرحيم ] ) [ الزمر : 53 ] وهذا عام في جميع الذنوب ، من كفر وشرك ، وشك ونفاق ، وقتل وفسق ، وغير ذلك : كل من تاب من أي ذلك تاب الله عليه . ]
This applies to all sins, whether it be kufr or shirk, doubt or nifaq, murder or criminality, or anything else. Whoever turns in repentance from any of that, Allah will turn to him in forgiveness.
[Tafsir ibn Kathir 2/381, under his tafsir of surah al-Nisa' ayah 93]