35 And all his sons and all his daughters rose up to comfort him; but he refused to be comforted; and he said, For I will go down into the grave unto my son mourning. Thus his father wept for him.
36 And the Midianites sold him into Egypt unto Potiphar, an officer of Pharaoh's, and captain of the guard.
Genesis 38
Intro: Birth of Er, Onan, and Shelah -- Er marrieth Tamar -- She deceiveth Judah.
1 And it came to pass at that time, that Judah went down from his brethren, and turned into a certain Adullamite, whose name was Hirah.
2 And Judah saw there a daughter of a certain Canaanite, whose name was Shuah; and he took her, and went in and lay with her.
3 And she conceived, and bare a son; and he called his name Er.
4 And she conceived again, and bare a son; and she called his name Onan.
5 And she yet again conceived, and bare a son; and called his name Shelah; and he was at Chezib, when she bare him.
6 And Judah took a wife for Er his firstborn, whose name was Tamar.
7 And Er, Judah's firstborn, was wicked in the sight of the Lord; and the Lord slew him.
8 And Judah said unto Onan, Go and marry thy brother's wife, and raise up seed unto thy brother.