Genesis 38:9

9 Doch Onan, wetende, dat dit zaad voor hem niet zoude zijn, zo geschiedde het, als hij tot zijns broeders huisvrouw inging, dat hij het verdierf tegen de aarde, om zijn broeder geen zaad te geven.

Genesis 38:9 Meaning and Commentary

Genesis 38:9

And Onan knew that the seed should not be his
Should not be called a son of his, but a son of his brother Er; this is to be understood only of the firstborn; all the rest of the children born afterwards were reckoned the children of the real parent of them; this shows this was a custom in use in those times, and well known, and was not a peculiar case: and it came to pass, when he went in unto his brother's wife;
to cohabit with her, as man and wife, he having married her according to his father's direction: that he spilled [it] on the ground, lest he should give his seed to
his brother:
lest his brother's wife he had married should conceive by him, and bear a son that should be called his brother's, and inherit his estate; and this is the sin, which from him is called Onania, a sin condemned by the light of nature, as well as by the word of God, and very prejudicial to mankind, as well as displeasing to God, as follows:

Genesis 38:9 In-Context

7 Maar Er, de eerstgeborene van Juda, was kwaad in des HEEREN ogen; daarom doodde hem de HEERE.
8 Toen zeide Juda tot Onan: Ga in tot uws broeders huisvrouw, en trouw haar in uws broeders naam, en verwek uw broeder zaad.
9 Doch Onan, wetende, dat dit zaad voor hem niet zoude zijn, zo geschiedde het, als hij tot zijns broeders huisvrouw inging, dat hij het verdierf tegen de aarde, om zijn broeder geen zaad te geven.
10 En het was kwaad in des HEEREN ogen, wat hij deed; daarom doodde Hij hem ook.
11 Toen zeide Juda tot Thamar, zijn schoondochter: Blijf weduwe in uws vaders huis, totdat mijn zoon Sela groot wordt; want hij zeide: Dat niet misschien ook deze sterve, gelijk zijn broeders! Zo ging Thamar heen, en bleef in haar vaders huis.
The Dutch Staten Vertaling translation is in the public domain.