1 And it came about at that time, that Judah departed from his brothers and visited a certain Adullamite, whose name was Hirah. 2 Judah saw there a daughter of a certain Canaanite whose name was Shua; and he took her and went in to her. 3 So she conceived and bore a son and he named him Er. 4 Then she conceived again and bore a son and named him Onan. 5 She bore still another son and named him Shelah; and it was at Chezib that she bore him.
6 Now Judah took a wife for Er his firstborn, and her name was Tamar. 7 But Er, Judah’s firstborn, was evil in the sight of the LORD, so the LORD took his life. 8 Then Judah said to Onan, “Go in to your brother’s wife, and perform your duty as a brother-in-law to her, and raise up offspring for your brother.” 9 Onan knew that the offspring would not be his; so when he went in to his brother’s wife, he wasted his seed on the ground in order not to give offspring to his brother. 10 But what he did was displeasing in the sight of the LORD; so He took his life also. 11Then Judah said to his daughter-in-law Tamar, “Remain a widow in your father’s house until my son Shelah grows up”; for he thought, “I am afraid that he too may die like his brothers.” So Tamar went and lived in her father’s house.
Judah at this point had not lived a very pleasing life, and his sons were the reflection of that. His firstborn is killed just for being evil. His second son disrespected his brother, and God, and his family, and God took his life too. Judah was afraid that his youngest might die too, but what he was really afraid of was stepping up to the plate and being a real father. Teach your children when they are young, and when they are older, they’ll know how to live. Don’t, and they’ll show how much you didn’t care when they grow up.