Genesis 38:9 (BSB)
9 But Onan knew that the offspring would not belong to him; so whenever he would sleep with his brother’s wife, he would spill his seed on the ground so that he would not produce offspring for his brother.
Berean Standard Bible: The Holy Bible, Berean Standard Bible, BSB, dedicated to the public domain berean.bible