Genesis 38:9 (KJV)

And Onan knew that the seed should not be his; and it came to pass, when he went in unto his brother’s wife, that he spilled it on the ground, lest that he should give seed to his brother.

Ellen G. White

Onan’s act of spilling his seed on the ground gives its name to a form of sexual wrongdoing called Onanism. That act is a violation of the law of chastity. It stands in the same category as indulging lustful thoughts and as excessive sexual conduct even within marriage. Those who become confirmed practitioners of Onanism become deeply morally depraved. Their depravity does not destroy their accountability. When passion or self-interest urges them to sin, they often give little weight to right and wrong.

Pioneers and periodicals

Genesis 38:9 belongs to the account of the sin of Judah and his family after Joseph was sold into Egypt. That account is recorded not to indulge or excuse sin but to expose it so that readers will shun it and see the remedy in God's love, mercy, and power. As part of Genesis 38 it displays the sad fruits of Jacob's mistake in having more than one wife, including partiality, jealousy, envy, low moral standards, and crime. As part of the history of Joseph it belongs to a narrative showing that whatever God has intended a person for, He may lead by a roundabout way but will guide aright and may be safely trusted to bring them to it. Onan knew that a child born to his brother's widow would be counted as his dead brother's child and would inherit his brother's land, so he deliberately prevented conception to refuse his duty to preserve his brother's name and family, and the Lord's displeasure fell on him for shirking that duty. The duty seen in the verse shows that levirate marriage was already recognized in patriarchal times, existing in germ and in special form long before Moses and later becoming part of the Mosaic code. Read in light of that law and custom, Tamar's later strategy secured rights Judah had fraudulently denied her, and the sons born from that union were counted as legitimate, with one becoming an ancestor of Jesus. The verse belongs to the account of the family from which Pharez, an ancestor of Christ, was born, connecting Christ's human ancestry with a line marked by human weakness. Tamar, who acted the part of a harlot with her father-in-law, stands among Jesus' ancestors, showing that God's reckoning includes fallen people and gives hope to those who inherit even very sinful tendencies. Pharez was born of a harlot, placing gross sin in Christ's own human ancestry and helping concentrate in Him all the weaknesses and sinful tendencies of fallen humanity. Christ thus took flesh weakened by physical and moral deterioration, more subject to infirmities