1 Chronicles 11:1-7

1 All Israel gathered around David at Hebron. "We are your own flesh and blood," they said.
2 "Even in the past when Saul ruled, you were the one who led Israel on its campaigns to war. The LORD your God has said to you, 'You will be shepherd of my people Israel, the leader of my people Israel.'"
3 All the leaders of Israel had come to Hebron. David made an agreement with them at Hebron in front of the LORD. So they anointed David king of Israel, as the LORD had spoken through Samuel.
4 David and all Israel went to Jerusalem (that is, Jebus). The Jebusites were living in that region.
5 They told David, "You will never get in here." But David captured the fortress Zion (that is, the City of David).
6 Now, David said, "Whoever is the first to kill a Jebusite will be made a general and a prince." Zeruiah's son Joab was the first to go [into Jerusalem], so he became the general.
7 David lived in the fortress, so it was called the City of David.