Shaykh Ibn Taymiyyah said:
Indeed Allah forgives the slave for any sin in which he repented from, therefore whoever repented from shirk, Allah forgave him, and whoever repented from the major sins – Allah forgave him.
Collection of fataawa 185/11
Translated by Abu Eesa Yunus Al Jamaykee