23 So when Joseph came to his brothers, they stripped him of his robe, the long robe with sleeves that he wore; 24 and they took him and cast him into a pit. The pit was empty, there was no water in it. 25 Then they sat down to eat; and looking up they saw a caravan of Ish'maelites coming from Gilead, with their camels bearing gum, balm, and myrrh, on their way to carry it down to Egypt. 26 Then Judah said to his brothers, "What profit is it if we slay our brother and conceal his blood? 27 Come, let us sell him to the Ish'maelites, and let not our hand be upon him, for he is our brother, our own flesh." And his brothers heeded him. 28 Then Mid'ianite traders passed by; and they drew Joseph up and lifted him out of the pit, and sold him to the Ish'maelites for twenty shekels of silver; and they took Joseph to Egypt. 29 When Reuben returned to the pit and saw that Joseph was not in the pit, he rent his clothes 30 and returned to his brothers, and said, "The lad is gone; 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.