17 Now when the Philistines heard that David was anointed king over Israel, all the Philistines marched up searching for David. When David heard about it, he went down to the stronghold.
18 The Philistines came and spread out in the valley of Rephaim.
19 Then David inquired of Adonai saying, “Should I go up against the Philistines? Will You give them over into my hand?” Adonai answered David, “Go up, for I will certainly give the Philistines over into your hand.”
20 So David came to Baal-perazim and David struck them down there. So he said, “Adonai has broken through my enemies before me like the breakthrough of waters!” That is why he named that place Baal-perazim.
21 They abandoned their idols there, so David and his men removed them.
22 But the Philistines marched up and spread out in the valley of Rephaim again.
23 When David inquired of Adonai, He said, “Do not go up; instead circle around behind them and attack them in front of the balsam trees.