Deuteronomy 21:16

NHEB(i) 16 then it shall be, in the day that he causes his sons to inherit that which he has, that he may not make the son of the loved the firstborn before the son of the unloved, who is the firstborn: