2 Samuel 16:15-23 ESV
Now Absalom and all the people, the men of Israel, came to Jerusalem, and Ahithophel with him. And when Hushai the Archite, David’s friend, came to Absalom, Hushai said to Absalom, “Long live the king! Long live the king!” And Absalom said to Hushai, “Is this your loyalty to your friend? Why did you not go with your friend?” And Hushai said to Absalom, “No, for whom the LORD and this people and all the men of Israel have chosen, his I will be, and with him I will remain. And again, whom should I serve? Should it not be his son? As I have served your father, so I will serve you.”
Then Absalom said to Ahithophel, “Give your counsel. What shall we do?” Ahithophel said to Absalom, “Go in to your father’s concubines, whom he has left to keep the house, and all Israel will hear that you have made yourself a stench to your father, and the hands of all who are with you will be strengthened.” So they pitched a tent for Absalom on the roof. And Absalom went in to his father’s concubines in the sight of all Israel. Now in those days the counsel that Ahithophel gave was as if one consulted the word of God; so was all the counsel of Ahithophel esteemed, both by David and by Absalom.
ESV: English Standard Version 2016