Gen 37:36
36Meanwhile the Midianites had sold him in Egypt to Potiphar, one of Pharaoh's officials, the captain of the guard.