Psalms 119:67

67 Before I was afflicted I went astray; But now I observe your word.