The righteous cry out, and the Lord hears them; he delivers them from all their troubles. The Lord is close to the brokenhearted and saves those who are crushed in spirit. (Psalm 34:17-18 NIV)
Not only that, but we rejoice in our sufferings, knowing that suffering produces endurance, and endurance produces character, and character produces hope, (Romans 5:3-4 ESV)
In writing to the Romans, Paul says that we should rejoice in our sufferings, because…
The land shall mourn, each family by itself: the family of the house of David by itself, and their wives by themselves; the family of the house of Nathan by itself, and their wives by themselves; (Zechariah 12:12 ESV)