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

Psalms 78:40

How oft did they provoke him in the wilderness, and grieve him in the desert!

Read in other translations