Deuteronomy 21:16

ACV(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 beloved the first-born before the son of the one regarded inferior, who is the first-born.