'Captain of the Guard' in the Bible
And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's and captain of the guard.
And Joseph was brought down to Egypt; and Potiphar, an officer of Pharaoh, captain of the guard, an Egyptian, bought him from the hands of the Ishmeelites, who had brought him down there.
And he put them in prison in the house of the captain of the guard, into the house of the prison where Joseph was bound.
And the captain of the guard charged Joseph with them, and he served them; and they continued for days in prison.
Pharaoh was angry with his slaves and put me in the prison of the captain of the guard's house, both me and the prince of the bakers.