Genesis 37:17-30 New Revised Standard Version, Anglicised (NRSVA)
17 The man said, ‘They have gone away, for I heard them say, “Let us go to Dothan.”’ So Joseph went after his brothers, and found them at Dothan. 18 They saw him from a distance, and before he came near to them, they conspired to kill him. 19 They said to one another, ‘Here comes this dreamer. 20 Come now, let us kill him and throw him into one of the pits; then we shall say that a wild animal has devoured him, and we shall see what will become of his dreams.’ 21 But when Reuben heard it, he delivered him out of their hands, saying, ‘Let us not take his life.’ 22 Reuben said to them, ‘Shed no blood; throw him into this pit here in the wilderness, but lay no hand on him’—that he might rescue him out of their hand and restore him to his father. 23 So when Joseph came to his brothers, they stripped him of his robe, the long robe with sleeves[a] that he wore; 24 and they took him and threw 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 Ishmaelites coming from Gilead, with their camels carrying gum, balm, and resin, on their way to carry it down to Egypt. 26 Then Judah said to his brothers, ‘What profit is there 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.
29 When Reuben returned to the pit and saw that Joseph was not in the pit, he tore his clothes. 30 He returned to his brothers, and said, ‘The boy is gone; and I, where can I turn?’