King James Version
And the counsel of Ahithophel, which he counselled in those days, was as if a man had enquired at the oracle of God: so was all the counsel of Ahithophel both with David and with Absalom.New International Version
Now in those days the advice Ahithophel gave was like that of one who inquires of God. That was how both David and Absalom regarded all of Ahithophel's advice.Catholic Public Domain Version
Now the counsel of Ahithophel, which he gave in those days, was treated as if one were consulting God. So was every counsel of Ahithophel, both when he was with David, and when he was with Absalom