Genesis 38:7-10

CKJV_Strongs(i)
  7 H6147 And Er, H3063 Judah's H1060 firstborn, H7451 was wicked H5869 in the sight H3068 of the Lord; H3068 and the Lord H4191 killed him.
  8 H3063 And Judah H559 said H209 unto Onan, H935 Go in H251 unto your brother's H802 wife, H2992 and marry H6965 her, and raise up H2233 seed H251 to your brother.
  9 H209 And Onan H3045 knew H2233 that the seed H518 should not be his; and it came to pass, when H935 he went in H251 unto his brother's H802 wife, H7843 that he spilled H776 it on the ground, H1115 lest H5414 that he should give H2233 seed H251 to his brother.
  10 H834 And the thing which H6213 he did H3415 displeased H3068 the Lord: H4191 therefore he killed him also.