1 Chronicles 18:13-17
English Standard Version
14So David reigned over all Israel, and he administered justice and equity to all his people.
15And Joab the son of Zeruiah was over the army; and Jehoshaphat the son of Ahilud was recorder;
16and Zadok the son of Ahitub and Ahimelech the son of Abiathar were priests; and Shavsha was secretary;
17and Benaiah the son of Jehoiada was over the Cherethites and the Pelethites; and David 's sons were the chief officials in the service of the king.