All the tribes of Israel came to David at Hebron. "We are your own flesh and blood," they said.
"Even in the past when Saul ruled us, you were the one who led Israel in battle. The LORD has said to you, 'You will be shepherd of my people Israel, the leader of Israel.'"
All the leaders of Israel had come to Hebron. King David made an agreement with them at Hebron in front of the LORD. So they anointed David king of Israel.
David was 30 years old when he became king, and he ruled for 40 years.
In Hebron he ruled Judah for seven years and six months. In Jerusalem he ruled for 33 years over all Israel and Judah.
The king and his men went to Jerusalem to attack the Jebusites, who lived in that region. The Jebusites told David, "You will never get in here. Even the blind and the lame could turn you away" (meaning that David could never get in there).
But David captured the fortress Zion (that is, the City of David).
That day David said, "Whoever wants to defeat the Jebusites must reach the lame and the blind who hate me by using the water shaft." So there is a saying, "The blind and the lame will not get into the palace."
David lived in the fortress and called it the City of David. He built the city [of Jerusalem] around it from the Millo to the palace.
David continued to grow more powerful because the LORD God of Armies was with him.
Then King Hiram of Tyre sent messengers to David, along with cedarwood, carpenters, and stonemasons. They built a palace for David.
So David realized that the LORD had established him as king of Israel and made his kingship famous for the sake of Israel, the LORD's people.
David married more concubines and wives from Jerusalem after he had come there from Hebron, and he fathered more sons and daughters.
These are the names of the children 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 of Israel, all of them came to attack David. But David heard about it and went to the fortress.
The Philistines had come and overrun the valley of Rephaim.
David asked the LORD, "Should I attack the Philistines? Will you hand them over to me?" The LORD answered David, "Attack! I will certainly hand the Philistines over to you."
So David went to Baal Perazim and defeated the Philistines there. He said, "The LORD has overwhelmed my enemies in front of me like an overwhelming flood." That is why that place is called Baal Perazim [The Lord Overwhelms].
The Philistines left their idols there, so David and his men carried the idols away.
The Philistines again attacked and overran the valley of Rephaim.
David asked the LORD, and he answered, "Don't attack now, but circle around behind them, and come at them in front of the balsam trees.
When you hear the sound of marching in the tops of the balsam trees, act immediately because the LORD has gone ahead of you to defeat the Philistine army."
David did as the LORD ordered him and defeated the Philistines from Geba to Gezer.