Gênesis 38

9 And Onan knew that the descendant would 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 a descendant to his brother.

10 And the thing which he did displeased the LORD: therefore he slew him also.