Deuteronomy 21:15
Deuteronomy 21:15 NIV
If a man has two wives, and he loves one but not the other, and both bear him sons but the firstborn is the son of the wife he does not love
If a man has two wives, and he loves one but not the other, and both bear him sons but the firstborn is the son of the wife he does not love