Men midjanittane selde Josef i Egypt, til Potifar, som var hoffmann hjå farao og hovding over livvakta.