Now Joseph had been taken down to Egypt; and Potiphar, an Egyptian officer of Pharaoh, the captain of the bodyguard, bought him from the Ishmaelites, who had taken him down there.
Then they sat down to eat a meal. But as they raised their eyes and looked, behold, a caravan of Ishmaelites was coming from Gilead, with their camels carrying labdanum resin, balsam, and myrrh, on their way to bring them down to Egypt.
Then some Midianite traders passed by, so they pulled him out and lifted Joseph out of the pit, and sold him to the Ishmaelites for twenty shekels of silver. So they brought Joseph into Egypt.