1 verses of the King James Version have both "astray" and "was".
Psalms 119:67 Before I was afflicted I went astray: but now have I kept thy word.
In other translations: WEB ASV YLT Darby Webster DRC Geneva