Now Joseph had been taken to Egypt. An Egyptian named Potiphar, an officer of Pharaoh and the captain of the guards, bought him from the Ishmaelites who had brought him there.