Genesis 38:8

8Then Judah said to Onan, “Go in to ayour brother’s wife and bperform the duty of a brother-in-law to her, and raise up offspring for your brother.”

Deuteronomy 25:5-10

Laws Concerning Levirate Marriage

5 cIf brothers dwell together, and one of them dies and has no son, the wife of the dead man shall not be married outside the family to a stranger. Her dhusband’s brother shall go in to her and take her as his wife and perform the duty of a husband’s brother to her. 6And the first son whom she bears shall succeed to the name of his dead brother, that ehis name may not be blotted out of Israel. 7And if the man does not wish to take his brother’s wife, then his brother’s wife shall fgo up to the gate to the elders and say, ‘My husband’s brother refuses to perpetuate his brother’s name in Israel; he will not perform the duty of a husband’s brother to me.’ 8Then the elders of his city shall call him and speak to him, and if he persists, saying, g‘I do not wish to take her,’ 9then his brother’s wife shall go up to him in the presence of the elders and hpull his sandal off his foot and ispit in his face. And she shall answer and say, ‘So shall it be done to the man who does not jbuild up his brother’s house.’ 10And the name of his house
Hebrew its name
shall be called in Israel, ‘The house of him who had his sandal pulled off.’

Ruth 4:5

5Then Boaz said, “The day you buy the field from the hand of Naomi, you also acquire Ruth
Masoretic Text you also buy it from Ruth
the Moabite, the widow of the dead, in order mto perpetuate the name of the dead in his inheritance.”
Copyright information for ESV