2 Samuel 5 New Revised Standard Version (NRSV)
David Anointed King of All Israel
5 Then all the tribes of Israel came to David at Hebron, and said, “Look, we are your bone and flesh. 2 For some time, while Saul was king over us, it was you who led out Israel and brought it in. The Lord said to you: It is you who shall be shepherd of my people Israel, you who shall be ruler over Israel.” 3 So all the elders of Israel came to the king at Hebron; and King David made a covenant with them at Hebron before the Lord, and they anointed David king over Israel. 4 David was thirty years old when he began to reign, and he reigned forty years. 5 At Hebron he reigned over Judah seven years and six months; and at Jerusalem he reigned over all Israel and Judah thirty-three years.
Jerusalem Made Capital of the United Kingdom
6 The king and his men marched to Jerusalem against the Jebusites, the inhabitants of the land, who said to David, “You will not come in here, even the blind and the lame will turn you back”—thinking, “David cannot come in here.” 7 Nevertheless David took the stronghold of Zion, which is now the city of David. 8 David had said on that day, “Whoever would strike down the Jebusites, let him get up the water shaft to attack the lame and the blind, those whom David hates.”[a] Therefore it is said, “The blind and the lame shall not come into the house.” 9 David occupied the stronghold, and named it the city of David. David built the city all around from the Millo inward. 10 And David became greater and greater, for the Lord, the God of hosts, was with him.
11 King Hiram of Tyre sent messengers to David, along with cedar trees, and carpenters and masons who built David a house. 12 David then perceived that the Lord had established him king over Israel, and that he had exalted his kingdom for the sake of his people Israel.
13 In Jerusalem, after he came from Hebron, David took more concubines and wives; and more sons and daughters were born to David. 14 These are the names of those who were born to him in Jerusalem: Shammua, Shobab, Nathan, Solomon, 15 Ibhar, Elishua, Nepheg, Japhia, 16 Elishama, Eliada, and Eliphelet.
Philistine Attack Repulsed
17 When the Philistines heard that David had been anointed king over Israel, all the Philistines went up in search of David; but David heard about it and went down to the stronghold. 18 Now the Philistines had come and spread out in the valley of Rephaim. 19 David inquired of the Lord, “Shall I go up against the Philistines? Will you give them into my hand?” The Lord said to David, “Go up; for I will certainly give the Philistines into your hand.” 20 So David came to Baal-perazim, and David defeated them there. He said, “The Lord has burst forth against[b] my enemies before me, like a bursting flood.” Therefore that place is called Baal-perazim.[c] 21 The Philistines abandoned their idols there, and David and his men carried them away.
22 Once again the Philistines came up, and were spread out in the valley of Rephaim. 23 When David inquired of the Lord, he said, “You shall not go up; go around to their rear, and come upon them opposite the balsam trees. 24 When you hear the sound of marching in the tops of the balsam trees, then be on the alert; for then the Lord has gone out before you to strike down the army of the Philistines.” 25 David did just as the Lord had commanded him; and he struck down the Philistines from Geba all the way to Gezer.