Deuteronomy 21:17

ERV(i) 17 but he shall acknowledge the firstborn, the son of the hated, by giving him a double portion of all that he hath: for he is the beginning of his strength; the right of the firstborn is his.