I Chronicles 11:4–9

And David and all Israel went to Jerusalem, which is Jebus, where the Jebusites were the inhabitants of the land. 5And the inhabitants of Jebus said to David: Thou shalt not come in here. But David took the castle of Sion, which is the city of David. 6And he said: Whosoever shall first strike the Jebusites, shall be the head and chief captain. And Joab the son of Sarvia went up first, and was made the general. 7And David dwelt in the castle, and therefore it was called the city of David, 8And he built the city round about from Mello all round, and Joab built the rest of the city. 9And David went on growing and increasing, and the Lord of hosts was with him.