Isaiah 29:24

24 Then those who are wayward in spirit will gain understanding, and those who complain will accept instruction.