23 And it came to pass when Joseph came to his brethren, that they stripped Joseph of his vest, the vest of many colours, which he had on; 24 and they took him and cast him into the pit; now the pit was empty—there was no water in it. 25 And they sat down to eat bread; and they lifted up their eyes and looked, and behold, a caravan of Ishmaelites came from Gilead; and their camels bore tragacanth, and balsam, and ladanum—going to carry [it] down to Egypt. 26 And Judah said to his brethren, What profit is it that we kill our brother and secrete his blood? 27 Come and let us sell him to the Ishmaelites; but let not our hand be upon him; for he is our brother, our flesh. And his brethren hearkened [to him]. 28 And Midianitish men, merchants, passed by; and they drew and lifted up Joseph out of the pit, and sold Joseph to the Ishmaelites for twenty silver-pieces; and they brought Joseph to Egypt. 29 And Reuben returned to the pit, and behold, Joseph [was] not in the pit; and he rent his garments, 30 and returned to his brethren, and said, The child is not; and I, where shall I go?

Matthew Henry's Commentary on Genesis 37:23-30

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.