26 Then Judah said to his brothers, "What profit is it if we kill our brother and conceal his blood? 27 Come, let us sell him to the Ishmaelites, and not lay our hands on him, for he is our brother, our own flesh." And his brothers agreed. 28 When some Midianite traders passed by, they drew Joseph up, lifting him out of the pit, and sold him to the Ishmaelites for twenty pieces of silver. And they took Joseph to Egypt.

Matthew Henry's Commentary on Genesis 37:26-28

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.