Deuteronomy 21:15

BBE(i) 15 If a man has two wives, one greatly loved and the other hated, and the two of them have had children by him; and if the first son is the child of the hated wife: