As the Midianite merchants were passing by, the brothers pulled Joseph out of the cistern. They sold him to the Ishmaelites for eight ounces of silver. The Ishmaelites took him to Egypt.