1 Chronicles 14
14 1-7 King 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-9 The 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.
10 David 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-12 David 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-15 And 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.”
16 David did exactly as God commanded, slaughtering Philistines all the way from Gibeon to Gezer.
17 David was soon famous all over the place, far and near; and God put the fear of God into the godless nations.