Nonetheless, the door of repentance is open, for a man may have sought an authoritative position and so Allah leaves him to it, but then he regrets it and repents from seeking it, and so Allah will forgive him and help him, whether in establishing an obligation or deliverance from the authority he sought. The same applied to the rest of the rials. Allah, the Most High, said: “Say: ‘Oh slaves of Mine who go to extremes against themselves, do not despair of the mercy of Allah. Indeed Allah forgives all sins.” (al-Zumar 39:53) and these matters require an explanation that is not feasible at this point.

Gardens of Purification by Ibn Taymiyyah Page 51