Genesis 37:3-4, 12-13, 17-28
3Now Israel loved Joseph more than any other of his children, because he was the son of his old age; and he made him a long robe with sleeves.
4But when his brothers saw that their father loved him more than all his brothers, they hated him, and could not speak peaceably to him.
12Now his brothers went to pasture their father's flock near Shechem.
13And Israel said to Joseph, "Are not your brothers pasturing the flock at Shechem? Come, I will send you to them." And he said to him, "Here I am."
17And 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.
18They saw him afar off, and before he came near to them they conspired against him to kill him.
19They said to one another, "Here comes this dreamer.
20Come now, let us kill him and throw him into one of the pits; then we shall say that a wild beast has devoured him, and we shall see what will become of his dreams."
21But when Reuben heard it, he delivered him out of their hands, saying, "Let us not take his life."
22And Reuben said to them, "Shed no blood; cast him into this pit here in the wilderness, but lay no hand upon him" -- that he might rescue him out of their hand, to restore him to his father.
23So when Joseph came to his brothers, they stripped him of his robe, the long robe with sleeves that he wore;
24and they took him and cast him into a pit. The pit was empty, there was no water in it.
25Then 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.
26Then Judah said to his brothers, "What profit is it if we slay our brother and conceal his blood?
27Come, 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.
28Then 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.