David did just as Yahweh commanded him, and he struck down the Philistines all the way from Geba to Gezer.
In context
23David inquired of Yahweh, and he said, “Do not go straight up. Circle around behind them and come at them opposite the balsam trees. 24As soon as you hear the sound of marching in the tops of the balsam trees, move quickly, for then Yahweh will have gone out ahead of you to strike the Philistine army.” 25David did just as Yahweh commanded him, and he struck down the Philistines all the way from Geba to Gezer.