Deuteronomy 21:17

New American Standard Bible (NASB)
But he shall acknowledge the firstborn, the son of the [p]unloved, by giving him a double portion of all that [q]he has, for he is the beginning of his strength; to him belongs the right of the firstborn.

Read Deuteronomy 21:17 in other translations