Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
LXX

Deuteronomy 21:15

And if a man have two wives, the one loved and the other hated, and both the loved and the hated should have born him [children], and the son of the hated should be first-born;

Read in other translations