Joab was the commander of Israel's entire army.Benaiah the son of Jehoiada was in command of David's bodyguard.