1 Chronicles 2:3

NLT
New Living Translation

3Judah 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.