AN ANSWER TO PRAYER.
The speaker in the previous psalm said, What is my expectation? Is it not the Lord?[1] Now, in this psalm, he says, Patiently, I awaited the Lord and he attended to me. He who said, Hear my prayer, now says, He heard my prayer. What have you prayed? I prayed that you may lead my thinking from the pit of misery and mud of desire, which is called clay, and set my feet on the rock so that I not be moved beyond by blowing winds, that is, from unclean spirits giving aid. He directs my steps; then he will give my mouth a new song. He sings not reckoning himself, or to Pharaoh, for there is no deliverance without God, but he sings a hymn to God, in whom we will have strength, and he himself will reduce our enemies to nothing.
Commentary on the Psalms 40