Then the Philistines heard that David had been anointed king over all Israel, so all the Philistines went up to seek out David. And David heard of it and went out against them.
Then David asked of God, saying, “Shall I go up against the Philistines? And will You give them into my hand?” And Yahweh said to him, “Go up, for I will give them into your hand.”
So they came up to Baal-perazim, and there David struck them down; and David said, “God has broken through my enemies by my hand, like the breakthrough of waters.” Therefore they named that place Baal-perazim.
So David again asked of God, and God said to him, “You shall not go directly up after them; circle around from behind them and come at them in front of the balsam trees.
And it will be that when you hear the sound of marching in the tops of the balsam trees, then you shall go out to battle, for God will have gone out before you to strike the camp of the Philistines.”