Read this passage and open each verse for the full verse feed and commentary tools.
24It shall be, when you hear the sound of marching in the tops of the mulberry-trees, that then you shall bestir yourself; for then is Yahweh gone out before you to strike the host of the Philistines. 25David did so, as Yahweh commanded him, and struck the Philistines from Geba until you come to Gezer.
2 Samuel 5:24-25 (WEB)