When the Philistines heard that David had been anointed king over all Israel, all the Philistines went up in search of David; and David heard of it and went out against them.
And David inquired of God, "Shall I go up against the Philistines? Wilt thou give them into my hand?" And the LORD said to him, "Go up, and I will give them into your hand."
And he went up to Baalperazim, and David defeated them there; and David said, "God has broken through my enemies by my hand, like a bursting flood." Therefore the name of that place is called Baalperazim.
And when you hear the sound of marching in the tops of the balsam trees, then go out to battle; for God has gone out before you to smite the army of the Philistines."