8The Philistines heard that David had been anointed king over all Israel, and all the Philistines went up to seek David. And David heard and went out before them.9The Philistines came and raided the Valley of Rephaim.10David asked God, "Shall I go up against the Philistines, and will you give them into my hand?" And the LORD said to him, "Go up, and I will give them into your hand."11They went up at Baal-Perazim and struck them there. And David said, "God has burst through my enemies by my hand like a burst of waters." Therefore they called that place Baal-Perazim.12And they abandoned their gods there. And David gave an order, and they burned them in fire.13The Philistines yet again spread themselves out in the valley.14David inquired of God again, and He said to him, "Do not go up after them; turn away from them and come against them opposite the balsam trees."15When you hear the sound of marching in the tops of the Baca trees, then go out to battle, for God has gone out before you to strike the camp of the Philistines.16David did as God had commanded him, and they struck the camp of the Philistines from Gibeon to Gezer.17And the name of David went out into all the lands, and the LORD put terror upon all the nations.