2 Samuel 5:17-25 - War With The Philistines
17 When the Philistines heard that David had been anointed king over Israel,
19 Then David inquired of the Lord:
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.”
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.”