10 David asked God, “Should I go and attack the Philistines? Will you let me defeat them?”The Lord answered him, “Go. I will let you defeat them.”
11 So David and his men went up to the town of Baal Perazim. There he defeated the Philistines. David said, “Like a flood of water, God has broken through my enemies. He has done this through me.” So that place was named Baal Perazim.
12 The Philistines had left their idols there. So David ordered his men to burn them.
13 Soon the Philistines attacked the people in the valley again.
14 So David prayed to God again, and God answered him. God said, “Don’t attack the Philistines from the front. Instead, go around them. Attack them in front of the balsam trees.
15 You will hear the sound of marching in the tops of the balsam trees. Then quickly attack the Philistines. I, God, will have gone out before you to defeat the Philistine army.”
16 David did what God commanded him to do. So David and his men defeated the Philistine army. They killed the Philistines all the way from Gibeon to Gezer.