David then divided the troops three ways, a third under Joab, a third under Abishai, son of Zeruiah and brother of Joab, and a third under Ittai the Gittite. The king said to the troops, “I intend to go out with you myself.”
Joab, son of Zeruiah, and the servants of David also set out and encountered them at the pool of Gibeon. And they sat down, one group on one side of the pool and the other on the opposite side.
They called for the king, but Eliakim, son of Hilkiah, the master of the palace, came out, along with Shebnah the scribe and the chancellor Joah, son of Asaph.
Then the master of the palace, Eliakim, son of Hilkiah, Shebnah the scribe, and the chancellor Joah, son of Asaph, came to Hezekiah with their garments torn, and reported to him the words of the commander.
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.