Deuteronomy 25:5-7

BBE(i) 5 If brothers are living together and one of them, at his death, has no son, the wife of the dead man is not to be married outside the family to another man: let her husband's brother go in to her and make her his wife, doing as it is right for a brother-in-law to do. 6 Then the first male child she has will take the rights of the brother who is dead, so that his name may not come to an end in Israel. 7 But if the man says he will not take his brother's wife, then let the wife go to the responsible men of the town, and say, My husband's brother will not keep his brother's name living in Israel; he will not do what it is right for a husband's brother to do.