And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's, and captain of the guard.