2 Samuel 5
David Becomes King of All Israel 1
Then all the tribes of Israel went to David at Hebron and told him, "We are your own flesh and blood.
In the past, 
when Saul was our king, you were the one who really led the forces of Israel. And the LORD told you, `You will be the shepherd of my people Israel. You will be Israel's leader.'"
So there at Hebron, King David made a covenant before the LORD with all the elders of Israel. And they anointed him king of Israel.
David was thirty years old when he began to reign, and he reigned forty years in all.
He had reigned over Judah from Hebron for seven years and six months, and from Jerusalem he reigned over all Israel and Judah for thirty-three years.
David Captures Jerusalem 6
David then led his men to Jerusalem to fight against the Jebusites, the original inhabitants of the land who were living there. The Jebusites taunted David, saying, "You'll never get in here! Even the blind and lame could keep you out!" For the Jebusites thought they were safe.
But David captured the fortress of Zion, which is now called the City of David.
On the day of the attack, David said to his troops, "I hate those `lame' and `blind' Jebusites. 
Whoever attacks them should strike by going into the city through the water tunnel. 
" That is the origin of the saying, "The blind and the lame may not enter the house." 
So David made the fortress his home, and he called it the City of David. He extended the city, starting at the supporting terraces 
and working inward.
And David became more and more powerful, because the LORD God of Heaven's Armies was with him.
Then King Hiram of Tyre sent messengers to David, along with cedar timber and carpenters and stonemasons, and they built David a palace.
And David realized that the LORD had confirmed him as king over Israel and had blessed his kingdom for the sake of his people Israel.
After moving from Hebron to Jerusalem, David married more concubines and wives, and they had more sons and daughters.
These are the names of David's sons who were born in Jerusalem: Shammua, Shobab, Nathan, Solomon,
Ibhar, Elishua, Nepheg, Japhia,
Elishama, Eliada, and Eliphelet.
David Conquers the Philistines 17
When the Philistines heard that David had been anointed king of Israel, they mobilized all their forces to capture him. But David was told they were coming, so he went into the stronghold.
The Philistines arrived and spread out across the valley of Rephaim.
So David asked the LORD, "Should I go out to fight the Philistines? Will you hand them over to me?"
The LORD replied to David, "Yes, go ahead. I will certainly hand them over to you."
So David went to Baal-perazim and defeated the Philistines there. "The LORD did it!" David exclaimed. "He burst through my enemies like a raging flood!" So he named that place Baal-perazim (which means "the Lord who bursts through").
The Philistines had abandoned their idols there, so David and his men confiscated them.
But after a while the Philistines returned and again spread out across the valley of Rephaim.
And again David asked the LORD what to do. "Do not attack them straight on," the LORD replied. "Instead, circle around behind and attack them near the poplar 
When you hear a sound like marching feet in the tops of the poplar trees, be on the alert! That will be the signal that the LORD is moving ahead of you to strike down the Philistine army."
So David did what the LORD commanded, and he struck down the Philistines all the way from Gibeon