1 Chronicles 11:4-6

ISV(i) 4 David Captures JerusalemLater, David and all of Israel marched to Jerusalem (then known as Jebus, where the Jebusites lived when they inhabited the land). 5 The inhabitants of Jebus told David, “You’re not coming in here!” Nevertheless, David captured the fortress of Zion, now known as the City of David.
6 David had announced, “Whoever first attacks the Jebusites will be appointed chief and commander.” When Zeruiah’s son Joab went up first, he became chief.