Psalm 34:18-19

18 The LORD is close to the brokenhearted and saves those who are crushed in spirit.
19 The righteous person may have many troubles, but the LORD delivers him from them all;