Deuteronomy 21:16

MLV(i) 16 then it will be, in the day that he causes his sons to inherit what he has, that he may not make the son of the beloved the firstborn before the son of the one hated, who is the firstborn.