1 Chronicles 18:15

18:15 Joab son of Zeruiah was commanding general of the army; Jehoshaphat son of Ahilud was secretary;

1 Chronicles 27:34

27:34 Ahithophel was succeeded by Jehoiada son of Benaiah and by Abiathar.

Joab was the commanding general of the king’s army.