13 You see that it is good to make confession. You see that there is salvation for them that repent. Solomon also fell but what says he? Afterwards I repented. Ahab, too, the King of Samaria, became a most wicked idolater, an outrageous man, the murderer of the Prophets, a stranger to godliness, a coveter of other men's fields and vineyards. Yet when by Jezebel's means he had slain Naboth, and the Prophet Elias came and merely threatened him, he rent his garments, and put on sackcloth. And what says the merciful God to Elias? Hast than seen how Ahab is pricked in the heart before Me? As if almost He would persuade the fiery zeal of the Prophet to condescend to the penitent. For He says, I will not bring the evil in his days. And though after this forgiveness he was sure not to depart from his wickedness, nevertheless the forgiving God forgave him, not as being ignorant of the future, but as granting a forgiveness corresponding to his present season of repentance. For it is the part of a righteous judge to give sentence according to each case that has occurred.
Source: Catechetical Lectures (New Advent)