Deuteronomy 21:17peh
He must agree to give the older son two shares of everything he owns, even though the older son is from the wife he does not love. That son was the first to prove his father could have children, so he has the rights that belong to the older son.
The firstborn son receives a double share of the inheritance.