Then Judah said to Onan, “Sleep with your brother’s wife. Perform your duty as her brother-in-law and raise up offspring for your brother.”
Jewish Publication Society of America Version (JPS1917) - Genesis 38:8 >And Judah said unto Onan: 'Go in unto thy brother's wife, and perform the duty of a husband's brother unto her, and raise up seed to thy brother.'