Men midianittene solgte ham i Egypten til Potifar, som var hoffmann hos Farao og høvding over livvakten.