Then someone told David saying, “Ahithophel is among the conspirators with Absalom.” So David prayed, “Adonai, please turn the counsel of Ahithophel into foolishness.”
Then Absalom and all the men of Israel said, “The counsel of Hushai the Archite is better than the counsel of Ahithophel.” For Adonai had ordained to thwart Ahithophel’s good counsel, so that Adonai might bring evil upon Absalom.
Also at that time I said to the people, “Let every man and his helper lodge inside Jerusalem, so they can be guards for us by night and workers by day.”
It is like a man away on a journey. After leaving his house and putting his servants in charge and giving each his task, he also commanded the doorkeeper to watch.