David, a God-fearing man, always maintained full communion with God, even in his most difficult processes he cried out to God so that He would hear his plea and so it happened.
It is in the most difficult moments which we must cling more and more to God, believe and trust in Him, not faint, but trust God all that we are and all that we have.
For I said in my haste, I am cut off from before thine eyes: nevertheless thou heardest the voice of my supplications when I cried unto thee.
At the beginning of Psalm 31, we see David asking God to free him from his enemies, from his distressers. But we can notice something very important, and it is that the Psalmist David never stopped mentioning the name of God.
Something very important that we can see is that God was always present at the supplication of the Psalmist David, He listened to him and kept him and cleaned his way from every stumbling block.
When the psalmist committed an infraction before God, he went before His Presence and recognized that he had sinned against Him.
O love the Lord, all ye his saints: for the Lord preserveth the faithful, and plentifully rewardeth the proud doer.
This statement that this man made before God is good, since in the people of Israel there were many disobedient men, these sometimes did what they wanted, so David commands all saints to love God, because the Lord keeps them, but evil men and with pride, these God punishes them.
Be of good courage, and he shall strengthen your heart, all ye that hope in the Lord.
When we are discouraged and words of encouragement come into our lives, they lift us up and restore us greatly, because God is God, and He helps us move forward. Let us not despair or faint, because that who is in heaven keeps us, let us strive and faithfully wait for God, because one day He will come to our aid.