8 When the Philistines had heard that David was anointed king over all Israel, they marched out in force looking for him. But when David heard of this, he went out against them.
9 Meanwhile the Philistines had come and raided the valley of Rephaim.
10 David inquired of God, “Shall I attack the Philistines, and will you deliver them into my power?” The Lord answered him, “Attack, for I have delivered them into your power.”
11 So they attacked, at Baal-perazim, and David defeated them there. Then David said, “By my hand God has broken through my enemies just as water breaks through a dam.” Therefore that place was called Baal-perazim.
12 The Philistines abandoned their gods there, and David ordered them to be burnt.
13 Once again the Philistines raided the valley,
14 and again David inquired of God. But God answered him: Do not try to pursue them, but go around them and come against them near the balsam trees.