23 It happened, when Joseph came to his brothers, that they stripped Joseph of his coat, the coat of many colors that was on him; 24 and they took him, and threw him into the pit. The pit was empty. There was no water in it. 25 They sat down to eat bread, and they lifted up their eyes and looked, and saw a caravan of Ishmaelites was coming from Gilead, with their camels bearing spices and balm and myrrh, going to carry it down to Egypt. 26 Judah said to his brothers, “What profit is it if we kill our brother and conceal his blood? 27 Come, and let’s sell him to the Ishmaelites, and not let our hand be on him; for he is our brother, our flesh.” His brothers listened to him. 28 Midianites who were merchants passed by, and they drew and lifted up Joseph out of the pit, and sold Joseph to the Ishmaelites for twenty pieces of silver. They brought Joseph into Egypt. 29 Reuben returned to the pit; and saw that Joseph wasn’t in the pit; and he tore his clothes. 30 He returned to his brothers, and said, “The child is no more; and I, where will 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.