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.