David took more concubines and wives from Jerusalem, after he came from Hebron; and more sons and daughters were born to him. And these are the names of those who were born to him in Jerusalem: Shammua, Shobab, Nathan, Solomon, Ibhar, Elishua, Nepheg, Japhia, Elishama, Eliada, and Eliphelet.
When the Philistines heard that David had been anointed king over Israel, all the Philistines went up to look for him, but he heard about it and went down to the stronghold. Now the Philistines had come and spread out [for battle] in the Valley of Rephaim. David inquired of the LORD, saying, “Shall I go up against the Philistines? Will You hand them over to me?” And the LORD said to David, “Go up, for I will certainly hand them over to you.” So David came to Baal-perazim, and he defeated them there, and said, “The LORD has broken through my enemies before me, like a breakthrough of water.” So he named that place Baal-perazim (master of breakthroughs). The Philistines abandoned their [pagan] idols there, so David and his men took them away [to be burned].
The Philistines came up once again and spread out in the Valley of Rephaim. When David inquired of the LORD, He said, “You shall not go up, but circle around behind them and come at them in front of the balsam trees. And when you hear the sound of marching in the tops of the balsam trees, then you shall pay attention and act promptly, for at that time the LORD will have gone out before you to strike the army of the Philistines.” David did just as the LORD had commanded him, and struck down the Philistines from Geba as far as Gezer.