Deuteronomy 21:16

CAB(i) 16 then it shall be that whenever he shall divide by inheritance his goods to his sons, he shall not be able to give the right of the firstborn to the son of the loved one, having overlooked the son of the hated, which is the firstborn.