Psalm 42:5 (KJV) Why art thou cast down, O my soul? and why art thou disquieted in me? hope thou in God: for I shall yet praise him for the help of his countenance.
Even in bad times, we should praise God because he is always watching over us. He never turns away and misses anything. Just knowing that he is watching and taking an interest is enough help to make it through anything.