David set him over his guard - “Made him of his privy council,” would be a better rendering. See 1 Samuel 22:14 note. This position, distinct from his office as captain of the Cherethites and Pelethites, is clearly indicated 1 Chronicles 27:34.
Related Commentaries of 2 Samuel 23:23
2 Samuel 23:23
23 He was more honourable than the thirty, but he attained not to the first three. And David set him over his guard.