Moses
Genesis 38:7BSB·traditional attribution

But Er, Judah’s firstborn, was wicked in the sight of the LORD; so the LORD put him to death.

John Calvin Reformed @genevareformer

7. And the Lord slew him. We know that long life is reckoned among the gifts of God; and justly: for since it is by no means a despicable honor that we are created after the image of God, the longer any one lives in the world, and daily experiences God’s care over him, it is certain that he is the more bountifully dealt with by the Lord.

Matthew Henry Presbyterian @wholebiblehenry

Here is, 1. Judah's foolish friendship with a Canaanite-man. He went down from his brethren, and withdrew for a time from their society and his father's family, and got to be intimately acquainted with one Hirah, an Adullamite, Gen 38:1. It is computed that he was now not much above fifteen or sixteen years of age, an easy prey to the tempter.

Commenting on Genesis 38:1-11

John Gill Reformed Baptist @doctorgill

And Judah said unto Onan,.... Some time after his brother's death: go in unto thy brother's wife, and marry her; Moses here uses a word not common for marriage, but which was peculiar to the marrying of a brother's wife according to a law given in his time: it appears to have been a custom before, and which the patriarch might be directed to by...