Now King Hiram of Tyre sent messengers to David, along with stonemasons and carpenters to build him a palace. Hiram also sent many cedar logs for lumber.
When the Philistines heard that David had been anointed king over all Israel, they mobilized all their forces to capture him. But David was told they were coming, so he and his men marched out to meet them.
So David asked God, "Should I go out to fight the Philistines? Will you hand them over to me?" The LORD replied, "Yes, go ahead. I will give you the victory."
So David and his troops went to Baal-perazim and defeated the Philistines there. "God has done it!" David exclaimed. "He used me to burst through my enemies like a raging flood!" So that place was named Baal-perazim (which means "the Lord who bursts through").
And once again David asked God what to do. "Do not attack them straight on," God replied. "Instead, circle around behind them and attack them near the balsam trees.
When you hear a sound like marching feet in the tops of the balsam trees, attack! That will be the signal that God is moving ahead of you to strike down the Philistines."