Psalms 78:34 Kabbalah

אִם־הֲרָגָ֥ם וּדְרָשׁ֑וּהוּ וְ֝שָׁ֗בוּ וְשִֽׁחֲרוּ־אֵֽל׃

When He slew them, then they would inquire after Him, And turn back and seek God earnestly.

Read kabbalistic (mystical) interpretation of Psalms 78:34: and classical mystical sources.