24 Then they grabbed him and threw him into the cistern. Now the cistern was empty; there was no water in it. 25 Then, just as they were sitting down to eat, they looked up and saw a caravan of camels in the distance coming toward them. It was a group of Ishmaelite traders taking a load of gum, balm, and aromatic resin from Gilead down to Egypt. 26 Judah said to his brothers, "What will we gain by killing our brother? We'd have to cover up the crime. 27 Instead of hurting him, let's sell him to those Ishmaelite traders. After all, he is our brother-our own flesh and blood!" And his brothers agreed. 28 So when the Ishmaelites, who were Midianite traders, came by, Joseph's brothers pulled him out of the cistern and sold him to them for twenty pieces of silver. And the traders took him to Egypt. 29 Some time later, Reuben returned to get Joseph out of the cistern. When he discovered that Joseph was missing, he tore his clothes in grief. 30 Then he went back to his brothers and lamented, "The boy is gone! What will I do now?"

31 Then the brothers killed a young goat and dipped Joseph's robe in its blood. 32 They sent the beautiful robe to their father with this message: "Look at what we found. Doesn't this robe belong to your son?" 33 Their father recognized it immediately. "Yes," he said, "it is my son's robe. A wild animal must have eaten him. Joseph has clearly been torn to pieces!" 34 Then Jacob tore his clothes and dressed himself in burlap. He mourned deeply for his son for a long time. 35 His family all tried to comfort him, but he refused to be comforted. "I will go to my grave mourning for my son," he would say, and then he would weep. 36 Meanwhile, the Midianite traders arrived in Egypt, where they sold Joseph to Potiphar, an officer of Pharaoh, the king of Egypt. Potiphar was captain of the palace guard.

Matthew Henry's Commentary on Genesis 37:24-36

Commentary on Genesis 37:23-30

(Read Genesis 37:23-30)

They threw Joseph into a pit, to perish there with hunger and cold; so cruel were their tender mercies. They slighted him when he was in distress, and were not grieved for the affliction of Joseph, see Psalm 76:10. Joseph's brethren were wonderfully restrained from murdering him, and their selling him as wonderfully turned to God's praise.

Commentary on Genesis 37:31-36

(Read Genesis 37:31-36)

When Satan has taught men to commit one sin, he teaches them to try to conceal it with another; to hide theft and murder, with lying and false oaths: but he that covers his sin shall not prosper long. Joseph's brethren kept their own and one another's counsel for some time; but their villany came to light at last, and it is here published to the world. To grieve their father, they sent him Joseph's coat of colours; and he hastily thought, on seeing the bloody coat, that Joseph was rent in pieces. Let those that know the heart of a parent, suppose the agony of poor Jacob. His sons basely pretended to comfort him, but miserable, hypocritical comforters were they all. Had they really desired to comfort him, they might at once have done it, by telling the truth. The heart is strangely hardened by the deceitfulness of sin. Jacob refused to be comforted. Great affection to any creature prepares for so much the greater affliction, when it is taken from us, or made bitter to us: undue love commonly ends in undue grief. It is the wisdom of parents not to bring up children delicately, they know not to what hardships they may be brought before they die. From the whole of this chapter we see with wonder the ways of Providence. The malignant brothers seem to have gotten their ends; the merchants, who care not what they deal in so that they gain, have also obtained theirs; and Potiphar, having got a fine young slave, has obtained his! But God's designs are, by these means, in train for execution. This event shall end in Israel's going down to Egypt; that ends in their deliverance by Moses; that in setting up the true religion in the world; and that in the spread of it among all nations by the gospel. Thus the wrath of man shall praise the Lord, and the remainder thereof will he restrain.