23 So it came to pass, when Joseph had come to his brothers, that they stripped Joseph of his tunic, the tunic of many colors that was on him. 24 Then they took him and cast him into a pit. And the pit was empty; there was no water in it. 25 And they sat down to eat a meal. Then they lifted their eyes and looked, and there was a company of Ishmaelites, coming from Gilead with their camels, bearing spices, balm, and myrrh, on their way to carry them down to Egypt. 26 So Judah said to his brothers, "What profit is there if we kill our brother and conceal his blood? 27 Come and let us sell him to the Ishmaelites, and let not our hand be upon him, for he is our brother and our flesh." And his brothers listened. 28 Then Midianite traders passed by; so the brothers pulled Joseph up and lifted him out of the pit, and sold him to the Ishmaelites for twenty shekels of silver. And they took Joseph to Egypt. 29 Then Reuben returned to the pit, and indeed Joseph was not in the pit; and he tore his clothes. 30 And he returned to his brothers and said, "The lad is no more; 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.