Psalms 78:30-34:
30 They had not turned aside from their desire,
While their food was yet in their mouth,
31 When God’s wrath itself ascended against them.
And He went killing among their stout ones;
And the young men of Israel he made collapse.
32 Despite all this they sinned some more
And did not put faith in his wonderful works.
33 So he brought their days to an end as if a mere exhalation,
And their years by the disturbance.
34 As often as he killed them, they also inquired for him,
And they returned and looked for God.
But it's OK, because He promised that things would get better.