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

Numbers 31:2

Avenge the wrongs of the children of Israel on the Madianites, and afterwards thou shalt be added to thy people.

Read in other translations