King James Version
Before I was afflicted I went astray: but now have I kept thy word.English Standard Version
Before I was afflicted I went astray, but now I keep your word.Catholic Public Domain Version
Before I was humbled, I committed offenses; because of this, I have kept to your word