David was told, “Ahithophel is among the conspirators with Absalom.” And David said, “Yahweh, please turn Ahithophel’s counsel into foolishness.”
In context
29So Zadok and Abiathar carried the ark of God back to Jerusalem, and they stayed there. 30David went up the ascent of the Mount of Olives, weeping as he went, his head covered, walking barefoot; and all the people with him covered their heads and went up weeping. 31David was told, “Ahithophel is among the conspirators with Absalom.” And David said, “Yahweh, please turn Ahithophel’s counsel into foolishness.” 32When David reached the summit, where he used to bow down to God, Hushai the Archite met him with his robe torn and dust on his head. 33David said to him, “If you go on with me, you will be a burden to me.