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

Exodus 22:28

Thou shalt not revile the gods, nor curse the ruler of thy people.

Read in other translations