4Then David and all the Israelites marched to Jerusalem (that is, Jebus), where the Jebusites inhabited the land.
5The people of Jebus said to David, “You will never get in here.” Nevertheless, David captured the fortress of Zion (that is, the City of David).
6Now David had said, “Whoever is the first to strike down a Jebusite will become chief commander.” And Joab son of Zeruiah went up first, and he became the chief.
7So David took up residence in the fortress; that is why it was called the City of David.
8He built up the city around it, from the supporting terraces to the surrounding wall, while Joab restored the rest of the city.
— 1 Chronicles 11:4-8