When the Philistines heard that David had been anointed king over all Israel, they all went in search of David; when David heard of this, he went out to face them.
so David inquired of God, "Should I go to war against the Philistines? Will You hand them over to me?" The LORD replied, "Go, and I will hand them over to you."
So the Israelites went up to Baal-perazim, and David defeated the Philistines there. Then David said, "Like a bursting flood, God has used me to burst out against my enemies." Therefore, they named that place the Lord Bursts Out.
So David again inquired of God, and God answered him, "Do not pursue them directly. Circle down away from them and attack them opposite the balsam trees.
When you hear the sound of marching in the tops of the balsam trees, then march out to battle, for God will have marched out ahead of you to attack the camp of the Philistines."