Deuteronomy 25:6

New American Standard Bible (NASB)
It shall be that the firstborn whom she bears shall [e]assume the name of his dead brother, so that his name will not be blotted out from Israel.

Read Deuteronomy 25:6 in other translations