Psalm 77 is a favorite of mine. Verse 19 gives me so much comfort. You should check it out.
Here is Martin Luther's take on this Psalm:
The 77th Psalm is a psalm of instruction. The psalmist uses himself as an example of how to find comfort when affliction comes and the conscience is troubled, as if God is angry with it. He says that he was so troubled that he could not have any sleep or even speak. But this comfort follows: The psalmist can fight off the thoughts with which he futilely suffered, and he can grasp instead the thought of the mighty works of God in the histories of old. Here we find that God's work was to help the miserable, the troubled, and the abandoned, and to throw down the self-secure, proud scoffers, for example,when He delivered the children of Israel from Egypt.
For this reason His paths are called "hidden." He is there to help when we think that we are totally abandoned. We should learn this well. God intends by this psalm to show us and teach us His manner of helping, namely that he never abandons us when things go ill. Instead, we should wait upon His help at that time with the greatest confidence and not believe our thoughts.
From, "Reading the Psalms With Luther," page 181