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

Numbers 31:7

And they set themselves in array against Madian, as the Lord commanded Moses; and they slew every male.

Read in other translations