36 Meanwhile the Midianites had sold Joseph to the Egyptians, to Potiphar, Pharaoh's chief officer, commander of the royal guard.