David was told that Ahithophel was among the conspirators with Absalom. And David said, “O Lord, I pray you, turn the counsel of Ahithophel into foolishness.”
Absalom and all the men of Israel said, “The counsel of Hushai the Archite is better than the counsel of Ahithophel.” For the Lord had ordained to defeat the good counsel of Ahithophel, so that the Lord might bring ruin on Absalom.
When Ahithophel saw that his counsel was not followed, he saddled his donkey and went off home to his own city. He set his house in order and hanged himself; he died and was buried in the tomb of his father.
so I will again do amazing things with this people, shocking and amazing. The wisdom of their wise shall perish, and the discernment of the discerning shall be hidden.
He has confirmed his words that he spoke against us and against our rulers by bringing upon us a calamity so great that what has been done against Jerusalem has never before been done under the whole heaven.