Psalm 119:67

67  Before I was afflicted I went astray,

but now I keep your word.