What does Psalms 119:67 say in the KJV?

Before I was afflicted I went astray: but now have I kept thy word.

King James Version (public domain)

Traditionally attributed to David · c. 10th century BC · King of Israel; author of many Psalms (compiled with other writers)

Context

65Thou hast dealt well with thy servant, O LORD, according unto thy word.

66Teach me good judgment and knowledge: for I have believed thy commandments.

67Before I was afflicted I went astray: but now have I kept thy word.

68Thou art good, and doest good; teach me thy statutes.

69The proud have forged a lie against me: but I will keep thy precepts with my whole heart.