But Er, Judah's firstborn son, was always going against God and doing bad things and so God killed him.