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

Numbers 25:5

And Moses said to the tribes of Israel, Slay ye every one his friend that is consecrated to Beel-phegor.

Read in other translations