Bereishit (Genesis) 37:23—36
23And so it was, when Yosef came to his brothers they stripped Yosef from his tunic, the fine woolen tunic that was on him. 24Then they took him, and cast him into the pit; the pit was empty, no water was in it.
25They sat to eat food; they raised their eyes and saw, behold! ― a caravan of Ishmaelites was coming from Gilead, their camels bearing spices, balsam, and lotus ― on their way to bring them down to Mitzrayim. 26Yehudah said to his brothers, “What gain will there be if we kill our brother and cover up his blood? 27Come, let us sell him to the Ishmaelites ― but let our hand not be upon him, for he is our brother, our own flesh.” His brothers agreed. 28Midianite men, traders, passed by; they drew Yosef up and lifted him out of the pit and sold Yosef to the Ishmaelites for twenty pieces of silver; then they brought to Mitzrayim. 29Reuven returned to the pit ― and behold! ― Yosef was not in the pit! So he rent his garments. 30Returning to his brothers he said, “The boy is gone! And I ― where can he go?” 31They took Yosef’s tunic, slaughtered a goatling, and dipped the tunic in the blood. 32They dispatched the fine woolen tunic and they brought it to their father, and said, “We found this; identify, if you please: Is it your son’s tunic or not?” 33He recognized it and he said, “My son’s tunic! A savage beast devoured him! Yosef was surely torn to bits!” 34Then Yaakov rent his garments and placed sackcloth on his loins; he mourned for his son many days. 35All is sons and all his daughters arose to comfort him, but he refused to comfort himself, and said: “For I will go down to the grave mourning for my son.” And his father bewailed him. 36Now the Midianites had sold him to Mitzrayim, to Potiphar, a courtier of Pharaoh, the Chamberlain of the Butchers.