Genesis 38:8 Gen. 38:8
And Judah said unto Onan, Go in unto thy brother's wife, and marry her, and raise up seed to thy brother.
Deuteronomy 25:5-6 Deut. 25:5-6
5 If brethren dwell together, and one of them die, and have no child, the wife of the dead shall not marry without unto a stranger: her husband's brother shall go in unto her, and take her to him to wife, and perform the duty of an husband's brother unto her. 6 And it shall be, that the firstborn which she beareth shall succeed in the name of his brother which is dead, that his name be not put out of Israel.
(Relation)