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.”
While Absalom was offering the sacrifices, he sent for Ahithophel the Gilonite, David’s counselor, from his city Giloh. The conspiracy grew in strength, and the people with Absalom kept increasing.
Now in those days the counsel that Ahithophel gave was as if one consulted the oracle of God, so all the counsel of Ahithophel was esteemed both by David and by Absalom.
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.
the spirit of the Egyptians within them will be emptied out, and I will confound their plans; they will consult the idols and the spirits of the dead and the ghosts and the familiar spirits;
I am not speaking of all of you; I know whom I have chosen. But it is to fulfill the scripture, ‘The one who ate my bread has lifted his heel against me.’