Major Sins, Minor Sins And Their Forgiveness
This refers to the fact that he did not repent right away, instead, he had this realization for instance 5-10 years later and then he repented, but did not delay it to the point where he sees death approaching (i.e. about to take his last breaths like in the case of pharoah when he was drowning and was certain that death has approached him now ).