Read this passage and open each verse for the full verse feed and commentary tools.
David King over All Israel
22Now the Philistines came up once again and overran the Valley of Rephaim. 23So David inquired of the Lord, but He said, “You shall not go directly up; circle around behind them and come at them in front of the baka-shrubs. 24And it shall be, when you hear the sound of marching in the tops of the baka-shrubs, then you shall act promptly, for then the Lord will have gone out before you to strike the army of the Philistines.” 25Then David did so, just as the Lord had commanded him; he struck and killed the Philistines from Geba as far as Gezer.
2 Samuel 5:22-25 (NASB)