1Chr 11:4-6

Jerusalem Captured 4David and all Israel marched to Jerusalem, that is Jebus, where the Jebusites were, the inhabitants of the land.5The inhabitants of Jebus said to David, “You will not come in here.” Nevertheless David took the stronghold of Zion, now the city of David.6David had said, “Whoever attacks the Jebusites first shall be chief and commander.” And Joab son of Zeruiah went up first, so he became chief.