Deuteronomy 21:17
Amplified Bible (AMP)Instead he shall acknowledge the son of the unloved as the firstborn, by giving him a double portion of all that he has, for he was the beginning of his strength (generative power); to him belongs the right of the firstborn.