Psalm 78:33 in the King James Version
Therefore their days did he consume in vanity, and their years in trouble.
Context
32 For all this they still sinned, and didn’t believe in his wondrous works.
33 Therefore he consumed their days in vanity, and their years in terror.
34 When he killed them, then they inquired after him. They returned and sought God earnestly.