Midianite traders passed by, and they pulled Joseph up out of the cistern. They sold Joseph for twenty pieces of silver to the Ishmaelites, who took him to Egypt.