5When brothers dwell together and one of them dies without a son, the widow must not marry outside the family. Her husband’s brother is to take her as his wife and fulfill the duty of a brother-in-law for her.
6The first son she bears will carry on the name of the dead brother, so that his name will not be blotted out from Israel.
— Deuteronomy 25:5-6