(1.) Let us review David's experiences. [1.] He was in great distress and trouble (v. 3): The sorrows of death compassed me, that is, such sorrows as were likely to be his death, such as were thought to be the very pangs of death. Perhaps the extremity of bodily pain, or trouble of mind, is called here the pains of hell, terror of conscience arising from sense of guilt. Note, The sorrows of death are great sorrows, and the pains of hell great pains. Let us therefore give diligence to prepare for the former, that we may escape the latter. These compassed him on every side; they arrested him, got hold upon him, so that he could not escape. Without were fightings, within were fears. "I found trouble and sorrow; not only they found me, but I found them." Those that are melancholy have a great deal of sorrow of their own finding, a great deal of trouble which they create to themselves, by indulging fancy and passion; this has sometimes been the infirmity of good men. When God's providence makes our condition bad let us not by our own imprudence make it worse. [2.] In his trouble he had recourse to God by faithful and fervent prayer, v. 4. He tells us that he prayed: Then called I upon the name of the Lord; then, when he was brought to the last extremity, then he made use of this, not as the last remedy, but as the old and only remedy, which he had found a salve for every sore. He tells us what his prayer was; it was short, but to the purpose: "O Lord! I beseech thee, deliver my soul; save me from death, and save me from sin, for that is it that is killing to the soul." Both the humility and the fervency of his prayer are intimated in these words, O Lord! I beseech thee. When we come to the throne of grace we must come as beggars for an alms, for necessary food. The following words (v. 5), Gracious is the Lord, may be taken as part of his prayer, as a plea to enforce his request and encourage his faith and hope: "Lord deliver my soul, for thou art gracious and merciful, and that only I depend upon for relief." [3.] God, in answer to his prayer, came in with seasonable and effectual relief. He found by experience that God is gracious and merciful, and in his compassion preserves the simple, v. 6. Because they are simple (that is, sincere, and upright, and without guile) therefore God preserves them, as he preserved Paul, who had his conversation in the world not with fleshly wisdom, but in simplicity and godly sincerity. Though they are simple (that is, weak, and helpless, and unable to shift for themselves, men of no depth, no design) yet God preserves them, because they commit themselves to him and have no confidence in their own sufficiency. Those who by faith put themselves under God's protection shall be safe.