19 David asked the Lord, “Shall I attack the Philistines? Will you give me the victory?”“Yes, attack!” the Lord answered. “I will give you the victory!”
20 So David went to Baal Perazim and there he defeated the Philistines. He said, “The Lord has broken through my enemies like a flood.” And so that place is called Baal Perazim.
21 When the Philistines fled, they left their idols behind, and David and his men carried them away.
22 Then the Philistines went back to the Valley of Rephaim and occupied it again.
23 Once more David consulted the Lord, who answered, “Don't attack them from here, but go round and get ready to attack them from the other side, near the balsam trees.
24 When you hear the sound of marching in the treetops, then attack because I will be marching ahead of you to defeat the Philistine army.”
25 David did what the Lord had commanded, and was able to drive the Philistines back from Geba all the way to Gezer.