David and all Israel went to Jerusalem — that is, Jebus — where the Jebusites, the inhabitants of the land, were.
In context
2Even in the past, even while Saul was king, you were the one who led Israel out and brought them in. And Yahweh your God said to you, ‘You will shepherd my people Israel, and you will be leader over my people Israel.’” 3So all the elders of Israel came to the king at Hebron, and David made a covenant with them at Hebron before Yahweh, and they anointed David king over Israel, according to the word of Yahweh through Samuel. 4David and all Israel went to Jerusalem — that is, Jebus — where the Jebusites, the inhabitants of the land, were. 5The inhabitants of Jebus said to David, “You will not come in here.” But David captured the stronghold of Zion — that is, the city of David. 6David said, “Whoever strikes the Jebusites first will become chief and commander.” And Joab son of Zeruiah went up first, and became chief.