Deuteronomy 21:16

LITV(i) 16 then it shall be, in the day that he causes his son to inherit that which he has, he may not cause to inherit the son of the loved one the first-born before the son of the hated one, who is truly the first-born.