Deuteronomy 21:15

VIN(i) 15 "If a man has two wives where one is loved but the other is unloved, and both of them bear him sons, but the firstborn is the son of the unloved wife,