It is important to note that God brings such suffering upon his people, not to destroy them, but to discipline them. According to Wenham, Throughout the Bible divine discipline is referred to: God punishes his people not merely because they deserve it, but because he loves them and wants to correct their foolish ways.
1
18 And if in spite of this you will not listen to me, then I will discipline you again sevenfold for your sins,