Gênesis 38

9 And Onan knew that the seed would not be his. And it happened when he went in to his brother's wife, that he spilled on the ground, not giving seed to his brother.

10 And what he did was evil in the eyes of the LORD. Therefore He killed him also.