At the turn of the year, the time when kings go to war, David sent out Joab along with his officers and all Israel, and they laid waste the Ammonites and besieged Rabbah. David himself remained in Jerusalem.
David said, “Whoever strikes the Jebusites first shall be made chief and captain.” Joab, the son of Zeruiah, was the first to attack; and so he became chief.