Deuteronomy 21:16

ERV(i) 16 then it shall be, in the day that he causeth his sons to inherit that which he hath, that he may not make the son of the beloved the firstborn before the son of the hated, which is the firstborn: