Psalms 78:32-34

ISV(i) 32 In spite of all of this, they kept on sinning and didn’t believe in his marvelous deeds. 33 So he made their days end in futility, and their years with sudden terror. 34 When he struck them, they sought him; they repented, and eagerly sought God.