Deuteronomy 21:15
If a man hath two wives, one loved, and another hateful, and he begetteth of her free children, and the son of the odious wife is the first begotten,If a man hath two wives, one loved, and another hateful, and he begetteth of her free children, and the son of the odious wife is the first begotten,