1 Chronicles 14
1-7King Hiram of Tyre sent an envoy to David, along with cedar lumber, masons, and carpenters to build him a royal palace. Then David knew for sure that God had confirmed him as king over Israel, because of the rising reputation that God was giving his kingdom for the benefit of his people Israel. David married more wives and had more children in Jerusalem. His children born in Jerusalem were Shammua, Shobab, Nathan, Solomon, Ibhar, Elishua, Elpelet, Nogah, Nepheg, Japhia, Elishama, Beeliada, and Eliphelet.
8-9The minute the Philistines heard that David had been made king over a united Israel, they went out in force to capture David. When David got the report, he marched out to confront them. On their way, the Philistines stopped off to plunder the Valley of Rephaim.
10David prayed to God: "Is this the right time to attack the Philistines? Will you give me the victory?"
God answered, "Attack; I'll give you the victory."
11-12David attacked at Baal Perazim and slaughtered them. David said, "God exploded my enemies, as water explodes from a burst pipe." That's how the place got its name, Baal Perazim (Baal-Explosion). The Philistines left their gods behind and David ordered that they be burned up.
13-15And then the Philistines were back at it again, plundering in the valley. David again prayed to God. God answered, "This time don't attack head-on; circle around and come at them out of the balsam grove. When you hear a sound like shuffling feet in the tops of the balsams, attack; God will be two steps ahead of you, slaughtering the Philistines."
16David did exactly as God commanded, slaughtering Philistines all the way from Gibeon to Gezer.
17David was soon famous all over the place, far and near; and God put the fear of God into the godless nations.