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.
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.
Nahshon was the son of Amminadab. Amminadab was the son of Admin. Admin was the son of Arni. Arni was the son of Hezron. Hezron was the son of Perez. Perez was the son of Judah.