Many, Lord my God, are the wonders you have done, the things you planned for us. None can compare with you; were I to speak and tell of your deeds, they would be too many to declare.
Here, David is praising God for doing great things (“wonders”) for the Israelite nation, as well as humanity itself. This declaration, however, comes in the midst of David’s plea for help that forms most of Psalm 40–but this is not counter-intuitive. In fact, because David knows that God has done great works before, he knows he can trust God to work wonders in his life even now; he knows God is who He says He is, and will give comfort and aid to the faithful.
We, too, have reason to praise God even when we are going through trials, as David did. Though God may not feel nearby, rest assured He is there–often, our own whirls of emotion and dark, despairing thoughts keep us from feeling His presence. The existence of trials in our lives does not mean God does not exist; He is greater than all problems and supports us through each one we face. If we were to try to “speak and tell of God’s deeds” in our lives, all the little things He takes care of for us each day, we, like David, would find them “too many to declare.” Yet they, too, are wonders, inexplicable except by the grace of God.
David’s Psalm 40, and this verse in particular, reminds us that even when we are in trouble, we can praise God for His greatness and providence, because He has proven over and over that He is able and willing to take care of us.