Judah had three sons from Bathshua, a Canaanite woman. Their names were Er, Onan, and Shelah. But the Lord saw that the oldest son, Er, was a wicked man, so he killed him.
The sons of Judah were Er, Onan, Shelah, Perez, and Zerah (though Er and Onan had died in the land of Canaan). The sons of Perez were Hezron and Hamul.
Shelah was one of Judah’s sons. The descendants of Shelah were Er (the father of Lecah); Laadah (the father of Mareshah); the families of linen workers at Beth-ashbea;
These were the clans descended from Judah’s surviving sons: The Shelanite clan, named after their ancestor Shelah. The Perezite clan, named after their ancestor Perez. The Zerahite clan, named after their ancestor Zerah.