What does Exodus 22:28 say in the KJV?

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

Spoken by God to Moses as part of the covenant laws given at Sinai.

King James Version (public domain)

Traditionally attributed to Moses · c. 13th century BC · The Pentateuch — Genesis, Exodus, Leviticus, Numbers, and Deuteronomy — is traditionally attributed to him

Context

26If thou at all take thy neighbour’s raiment to pledge, thou shalt deliver it unto him by that the sun goeth down:

27For that is his covering only, it is his raiment for his skin: wherein shall he sleep? and it shall come to pass, when he crieth unto me, that I will hear; for I am gracious.

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

29Thou shalt not delay to offer the first of thy ripe fruits, and of thy liquors: the firstborn of thy sons shalt thou give unto me.

30Likewise shalt thou do with thine oxen, and with thy sheep: seven days it shall be with his dam; on the eighth day thou shalt give it me.