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.