Psalms 34:18-19

The Lord is near to those who have a broken heart, And saves such as have a contrite spirit.  Many are the afflictions of the righteous, But the Lord delivers him out of them all.