1 Chronicles 11:4-9

David captures Jerusalem

4 Then David and all Israel marched to Jerusalem, that is, Jebus, where the Jebusites lived.
5 The people who lived in Jebus told David, "You'll never get in here!" But David captured the mountain fortress of Zion, which became David's City.
6 David had said, "The first one to kill a Jebusite will become commander in chief!" Joab, Zeruiah's son, was the first to attack and so became commander in chief.
7 David occupied the fortress, so it was renamed David's City.
8 He also built up the city on all sides, including its own foundations and the surrounding areas, while Joab restored the rest of the city.
9 David grew increasingly powerful, and the LORD of heavenly forces was with him.