Historical commentary by Matthew Henry. The wording and interpretations below belong to the original source.
David's Complaints.
These verses speak the language of a heart truly humbled under humbling providences, of a broken and contrite spirit under great afflictions, sent on purpose to awaken conscience and mortify corruption. Those heap up wrath who cry not when God binds them; but those are getting ready for mercy who, under God's rebukes, sow in tears, as David does here. Let us observe here,
I. The representation he makes to God of his grievances. He pours out his complaint before him. Whither else should a child go with his complaints, but to his father? 1. He complains of bodily pain and sickness ( v. 2 ): My bones are vexed. His bones and his flesh, like Job's, were touched. Though David was a king, yet he was sick and pained; his imperial crown could not keep his head from aching. Great men are men, and subject to the common calamities of human life. Though David was a stout man, a man of war from his youth, yet this could not secure him from distempers, which will soon make even the strong men to bow themselves. Though David was a good man, yet neither could his goodness keep him in health. Lord, behold, he whom thou lovest is sick. Let this help to reconcile us to pain and sickness, that it has been the lot of some of the best saints, and that we are directed and encouraged by their example to show before God our trouble in that case, who is for the body, and takes cognizance of its ailments. 2. He complains of inward trouble: My soul is also sorely vexed; and that is much more grievous than the vexation of the bones. The spirit of a man will sustain his infirmity, if that be in good plight; but, if that be wounded, the grievance is intolerable. David's sickness brought his sin to his remembrance, and he looked upon it as a token of God's displeasure against him; that was the vexation of his soul; that made him cry, I am weak, heal me. It is a sad thing for a man to have his bones and his soul vexed at the same time; but this has been sometimes the lot of God's own people: nay, and this completed his complicated trouble, that it was continued upon him a great while, which is here intimated in that expostulation ( v. 3 ), Thou, O Lord! how long? To the living God we must, at such a time, address ourselves, who is the only physician both of body and mind, and not to the Assyrians, not to the god of Ekron.
II. The impression which his troubles made upon him. They lay very heavily; he groaned till he was weary, wept till he made his bed to swim, and watered his couch ( v. 6 ), wept till he had almost wept his eyes out ( v. 7 ): My eye is consumed because of grief. David had more courage and consideration than to mourn thus for any outward affliction; but, when sin sat heavily upon his conscience and he was made to possess his iniquities, when his soul was wounded with the sense of God's wrath and his withdrawings from him, then he thus grieves and mourns in secret, and even his soul refuses to be comforted. This not only kept his eyes waking, but kept his eyes weeping. Note, 1. It has often been the lot of the best of men to be men of sorrows; our Lord Jesus himself was so. Our way lies through a vale of tears, and we must accommodate ourselves to the temper of the climate. 2. It well becomes the greatest spirits to be tender, and to relent, under the tokens of God's displeasure. David, who could face Goliath himself and many another threatening enemy with an undaunted bravery, yet melts into tears at the remembrance of sin and under the apprehensions of divine wrath; and it was no diminution at all to his character to do so. 3. True penitents weep in their retirements. The Pharisees disguised their faces, that they might appear unto men to mourn; but David mourned in the night upon the bed where he lay communing with his own heart, and no eye was a witness to his grief, but the eye of him who is all eye. Peter went out, covered his face, and wept. 4. Sorrow for sin ought to be great sorrow; so David's was; he wept so bitterly, so abundantly, that he watered his couch. 5. The triumphs of wicked men in the sorrows of the saints add very much to their grief. David's eye waxed old because of his enemies, who rejoiced in his afflictions and put bad constructions upon his tears. In this great sorrow David was a type of Christ, who often wept, and who cried out, My soul is exceedingly sorrowful, Heb. v. 7 .