Then they took him and threw him into the pit. The pit was empty; there was no water in it.
Then they sat down to eat a meal. They looked up, and there was a caravan of Ishmaelites coming from Gilead. Their camels were carrying aromatic gum, balsam, and resin, going down to Egypt.
Then Judah said to his brothers, "What do we gain if we kill our brother and cover up his blood?
Come, let's sell him to the Ishmaelites and not lay a hand on him, for he is our brother, our [own] flesh." His brothers agreed.
When Midianite traders passed by, they pulled Joseph out of the pit and sold him for 20 pieces of silver to the Ishmaelites, who took Joseph to Egypt.
References for Genesis 37:28
When Reuben returned to the pit and saw that Joseph was not there, he tore his clothes.
He went back to his brothers and said, "The boy is gone! What am I going to do?"
References for Genesis 37:30
So they took Joseph's robe, slaughtered a young goat, and dipped the robe in its blood.
They sent the robe of many colors to their father and said, "We found this. Examine it. Is it your son's robe or not?"
His father recognized it. "It is my son's robe," he said. "A vicious animal has devoured him. Joseph has been torn to pieces!"
Then Jacob tore his clothes, put sackcloth around his waist, and mourned for his son many days.