'Captain of the Guard' in the Bible
Meanwhile, the Midianites sold Joseph in Egypt to Potiphar, an officer of Pharaoh and the captain of the guard.
Now Joseph had been taken to Egypt. An Egyptian [named] Potiphar, an officer of Pharaoh and the captain of the guard, bought him from the Ishmaelites who had brought him there.
and put them in custody in the house of the captain of the guard, in the prison where Joseph was confined.
The captain of the guard assigned Joseph to them, and he became their personal attendant. And they were in custody for some time.
Pharaoh had been angry with his servants, and he put me and the chief baker in the custody of the captain of the guard.