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

Psalms 89:38

But thou hast cast off and abhorred, thou hast been wroth with thine anointed.

Read in other translations