Isaiah 31:4–5 (NKJV)
4 For thus the Lord has spoken to me: “As a lion roars, And a young lion over his prey (When a multitude of shepherds is summoned against him, He will not be afraid of their voice Nor be disturbed by their noise), So the Lord of hosts will come down To fight for Mount Zion and for its hill. 5 Like birds flying about, So will the Lord of hosts defend Jerusalem. Defending, He will also deliver it; Passing over, He will preserve it.”
"What the two pictures of verses 4 and 5 amount to is a promise that the LORD himself will fight for and protect Jerusalem. That promise still stood when Sennacherib's envoys were finally at the gates (37:35), and Hezekiah then had, at last, the wisdom and humility to claim it." - Webb, p133.
The trials of the LORD and of course His chastisements, are often due to our own rebellions, large and small. Through them all, we often hear the voice of the LORD telling us that we only need to return to Him (in faith and obedience, both are critical).
And when He grants wisdom, when He humbles us and grants humility, and when He give us the gift of repentance, there is so much deliverance. Often, in forgiveness, we experience the deep release of our broken fellowship with God restored. And often, when a nation turns to the LORD, there is quick restoration and blessing.