Meanwhile, the Midianites asold him in Egypt to Potiphar, Pharaoh's officer, the captain of the bodyguard.