When the Midianite traders passed by, they pulled Joseph up out of the pit and sold him to the Ishmaelites for twenty pieces of silver, and they took Joseph to Egypt.
In context
26Judah said to his brothers, “What do we gain by killing our brother and covering up his blood? 27Come, let us sell him to the Ishmaelites instead, and not lay a hand on him ourselves — he is our brother, our own flesh.” His brothers agreed. 28When the Midianite traders passed by, they pulled Joseph up out of the pit and sold him to the Ishmaelites for twenty pieces of silver, and they took Joseph to Egypt. 29When Reuben returned to the pit and did not find Joseph there, he tore his clothes. 30He went back to his brothers and said, “The boy is gone! Now what am I going to do?”