18 So the Philistines came and spread out in the Valley of Rephaim.
19 Then David inquired of the Lord: “Should I go to war against the Philistines? Will you hand them over to me? ”The Lord replied to David, “Go, for I will certainly hand the Philistines over to you.”
20 So David went to Baal-perazim and defeated them there and said, “Like a bursting flood, the Lord has burst out against my enemies before me.” Therefore, he named that place the Lord Bursts Out.
21 The Philistines abandoned their idols there, and David and his men carried them off.
22 The Philistines came up again and spread out in the Valley of Rephaim.
23 So David inquired of the Lord, and He answered, “Do not make a frontal assault. Circle around behind them and attack them opposite the balsam trees.
24 When you hear the sound of marching in the tops of the balsam trees, act decisively, for then the Lord will have marched out ahead of you to attack the camp of the Philistines.”