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.New International Version
Before I was afflicted I went astray, but now I obey your word.