1 Chronicles 11:1-9

1 Then all Israel gathered themselves to David to Hebron, saying, Behold, we are your bone and your flesh.

2 And moreover in time past, even when Saul was king, you were he that led out and brought in Israel: and the LORD your God said to you, You shall feed my people Israel, and you shall be ruler over my people Israel.

3 Therefore came all the elders of Israel to the king to Hebron; and David made a covenant with them in Hebron before the LORD; and they anointed David king over Israel, according to the word of the LORD by Samuel.

4 And David and all Israel went to Jerusalem, which is Jebus; where the Jebusites were, the inhabitants of the land.

5 And the inhabitants of Jebus said to David, You shall not come here. Nevertheless David took the castle of Zion, which is the city of David.

6 And David said, Whoever smites the Jebusites first shall be chief and captain. So Joab the son of Zeruiah went first up, and was chief.

7 And David dwelled in the castle; therefore they called it the city of David.

8 And he built the city round about, even from Millo round about: and Joab repaired the rest of the city.

9 So David waxed greater and greater: for the LORD of hosts was with him.