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

Psalms 118:21

Thou hast rebuked the proud: cursed are they that turn aside from thy commandments.

Read in other translations