Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
LXX

Genesis 38:9

And Aunan, knowing that the seed should not be his—it came to pass when he went in to his brother's wife, that he spilled [it] upon the ground, so that he should not give seed to his brother's wife.

Read in other translations