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

Numbers 23:5

And the Lord put a word in Balaam’s mouth, and said, Return unto Balak, and thus thou shalt speak.

Read in other translations