Then the king appointed Benaiah to be the commander of the army instead of Joab, and he appointed Zadok to be the priest instead of Abiathar.