2 Samuel 18:4

And the king said unto them, What seemeth you best I will do. And the king stood by the gate side, and all the people came out by hundreds and by thousands.

David yielded to the judgment of his officers that he should not go out to the field in person against Absalom's forces. He consented to stay behind in the city instead, holding himself in readiness to aid the army from there. In doing so he pledged himself to carry out whatever course appeared best to them.