God puts Onan to death
Onan refused to have children with his brother’s widow, and God put him to death.
Key passages
Ge 38:8–10

Then Judah said to Onan, “Go in to the wife of your brother and perform the duty of a brother-in-law to her, and raise up offspring for your brother.” But Onan knew that the offspring would not be for him, so whenever he went in to the wife of his brother he would waste it on the ground so as …

See also
Ge 46:12; Nu 26:19;