Isaiah 29:24 in the King James Version
They also that erred in spirit shall come to understanding, and they that murmured shall learn doctrine.
Context
23 But when he sees his children, the work of my hands, in the middle of him, they will sanctify my name. Yes, they will sanctify the Holy One of Jacob, and will stand in awe of the God of Israel.
24 They also who err in spirit will come to understanding, and those who grumble will receive instruction.”