And David perceived that the Lord had established and confirmed him as king over Israel, for his kingdom was exalted highly for His people Israel's sake.
And when the Philistines heard that David was anointed king over all Israel, [they] all went up to seek David. And [he] heard of it and went out before them.
David asked God, Shall I go up against the Philistines? And will You deliver them into my hand? And the Lord said, Go up, and I will deliver them into your hand.
So [Israel] came up to Baal-perazim, and David smote [the Philistines] there. Then David said, God has broken my enemies by my hand, like the bursting forth of waters. Therefore they called the name of that place Baal-perazim [Lord of breaking through].
And David inquired again of God, and God said to him, Do not go up after them; turn away from them and come [around] upon them over opposite the mulberry trees.
And when you hear a sound of marching in the tops of the mulberry or balsam trees, then go out to battle, for God has gone out before you to smite the Philistine host.