Deuteronomy 21:16

Deuteronomy 21:16 NKJV

then it shall be, on the day he bequeaths his possessions to his sons, that he must not bestow firstborn status on the son of the loved wife in preference to the son of the unloved, the true firstborn.
NKJV: New King James Version