And  Joseph  was brought  down  to  Egypt ; and  Potiphar , an  officer  of  Pharaoh ,  captain  of the  guard , an  Egyptian ,  bought  him of the  hands  of the  Ishmaelites ,  which  had brought him  down  thither .