8 When the Philistines heard that David was anointed king over all Israel, all the Philistines went up in search of David, but David heard of it and went out before them.
9 Now the Philistines had come and raided the Valley of Rephaim.
10 So David inquired of God, asking, “Should I go up against the Philistines? Will You give them over into my hand?” Then Adonai said to him, “Go up! I will give them over into your hand.”
11 So they came up to Baal-perazim, where David defeated them. David said, “God burst out against my enemies by my hand, like waters burst out!” Therefore they called the name of that place Baal-perazim .
12 They abandoned their gods there, so David ordered and they were burned with fire.
13 But the Philistines again raided the valley.
14 So David again inquired of God, and God said to him, “Do not go up after them, but circle around behind them and come against them in front of the baca trees .