Now Hiram king of Tyre sent envoys to David, along with cedar logs, stonemasons, and carpenters, to build a palace for him.
And David realized that the LORD had established him as king over Israel and had highly exalted his kingdom for the sake of His people Israel.
When the Philistines heard that David had been anointed king over all Israel, they all went in search of him; but David learned of this and went out to face them.
So David inquired of God, “Should I go up against the Philistines? Will You deliver them into my hand?” “Go,” replied the LORD, “for I will deliver them into your hand.”
So David and his men went up to Baal-perazim, where he defeated the Philistines and said, “Like a bursting flood, God has burst out against my enemies by my hand.” So they called that place Baal-perazim.
So David again inquired of God, who answered him, “Do not march up after them, but circle around them and attack them in front of the balsam trees.
As soon as you hear the sound of marching in the tops of the balsam trees, move out to battle, because this will mean that God has gone out before you to strike the camp of the Philistines.”
So David did as God had commanded him, and they struck down the army of the Philistines all the way from Gibeon to Gezer.