An officer of Pharaoh, captain of the guard - Mr. Ainsworth, supposing that his office merely consisted in having charge of the king's prisoners, calls Potiphar provost marshal! See Clarke on Gen 37:36 (note), See Clarke on Gen 40:3 (note).