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

Deuteronomy 18:22

Whatsoever words that prophet shall speak in the name of the Lord, and they shall not come true, and not come to pass, this [is] the thing which the Lord has not spoken; that prophet has spoken wickedly: ye shall not spare him.

Read in other translations