Then Absalom and all the men of Israel said, “The advice of Hushai the Archite is better than that of Ahithophel.” For the LORD had purposed to thwart the good counsel of Ahithophel in order to bring disaster on Absalom.
— 2 Samuel 17:14
Why does folly often prevail over wisdom in the counsels of princes, and in houses of legislators? God has appointed the rejection of good counsel in order to bring on nations that vengeance that their crimes call down from heaven.