If
Genesis 38:8
Then Judah said to Onan, "Go in to your brother's wife, and perform the duty of a brother-in-law to her, and raise up offspring for your brother."
Deuteronomy 25:5-10
5
"If brothers dwell together, and one of them dies and has no son, the wife of the dead shall not be married outside the family to a stranger; her husband's brother shall go in to her, and take her as his wife, and perform the duty of a husband's brother to her.
6
And the first son whom she bears shall succeed to the name of his brother who is dead, that his name may not be blotted out of Israel.
7
And if the man does not wish to take his brother's wife, then his brother's wife shall go 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.'
8
Then the elders of his city shall call him, and speak to him: and if he persists, saying, `I do not wish to take her,'
9
then his brother's wife shall go up to him in the presence of the elders, and pull his sandal off his foot, and spit in his face; and she shall answer and say, `So shall it be done to the man who does not build up his brother's house.'
10
And the name of his house shall be called in Israel, The house of him that had his sandal pulled off.
Ruth 4:5
Then Bo'az said, "The day you buy the field from the hand of Na'omi, you are also buying Ruth the Moabitess, the widow of the dead, in order to restore the name of the dead to his inheritance."
that
Ruth 1:11-13
11
But Na'omi said, "Turn back, my daughters, why will you go with me? Have I yet sons in my womb that they may become your husbands?
12
Turn back, my daughters, go your way, for I am too old to have a husband. If I should say I have hope, even if I should have a husband this night and should bear sons,
13
would you therefore wait till they were grown? Would you therefore refrain from marrying? No, my daughters, for it is exceedingly bitter to me for your sake that the hand of the LORD has gone forth against me."