“And We shall turn their hearts and their eyes away (from guidance), as they refused to believe therein for the first time, and We shall leave them in their trespass to wander blindly” [al-An‘aam 6:110].
Ibn al-Qayyim (may Allah have mercy on him) said: This is part of greater understanding: that a man fears that his sins may cause him misfortune at the time of death and keep him from a good end. Imam Ahmad narrated from Abu’d-Darda’ that when he was dying, he would lose consciousness then he would come to and recite: “And We shall turn their hearts and their eyes away (from guidance), as they refused to believe therein for the first time, and We shall leave them in their trespass to wander blindly” [al-An‘aam 6:110]. Because of that, the early generation feared sins, lest they kept them from a good end.
Al-Jawaab al-Kaafi by Ibn al-Qayyim, 167