These words of David are very worthy of regard. Let those who have had long experience of God's goodness, and the pleasantness of heavenly wisdom, when they come to finish their course, bear their testimony to the truth of the promise. David avows his Divine inspiration, that the Spirit of God spake by him. He, and other holy men, spake and wrote as they were moved by the Holy Ghost. In many things he had his own neglect and wrong conduct to blame. But David comforted himself that the Lord had made with him an everlasting covenant. By this he principally intended the covenant of mercy and peace, which the Lord made with him as a sinner, who believed in the promised Saviour, who embraced the promised blessing, who yielded up himself to the Lord, to be his redeemed servant. Believers shall for ever enjoy covenant blessings; and God the Father, Son, and Holy Ghost, shall be for ever glorified in their salvation. Thus pardon, righteousness, grace, and eternal life, are secured as the gift of God through Jesus Christ. There is an infinite fulness of grace and all blessings treasured up in Christ, for those who seek his salvation. This covenant was all David's salvation, he so well knew the holy law of God and the extent of his own sinfulness, that he perceived what was needful for his own case in this salvation. It was therefore all his desire. In comparison, all earthly objects lost their attractions; he was willing to give them up, or to die and leave them, that he might enjoy full happiness, Psalm 73:24-28. Still the power of evil, and the weakness of his faith, hope, and love, were his grief and burden. Doubtless he would have allowed that his own slackness and want of care were the cause; but the hope that he should soon be made perfect in glory, encouraged him in his dying moments.
Matthew Henry's Commentary on 2 Samuel 23:3
Commentary on 2 Samuel 23:1-7
(Read 2 Samuel 23:1-7)
These words of David are very worthy of regard. Let those who have had long experience of God's goodness, and the pleasantness of heavenly wisdom, when they come to finish their course, bear their testimony to the truth of the promise. David avows his Divine inspiration, that the Spirit of God spake by him. He, and other holy men, spake and wrote as they were moved by the Holy Ghost. In many things he had his own neglect and wrong conduct to blame. But David comforted himself that the Lord had made with him an everlasting covenant. By this he principally intended the covenant of mercy and peace, which the Lord made with him as a sinner, who believed in the promised Saviour, who embraced the promised blessing, who yielded up himself to the Lord, to be his redeemed servant. Believers shall for ever enjoy covenant blessings; and God the Father, Son, and Holy Ghost, shall be for ever glorified in their salvation. Thus pardon, righteousness, grace, and eternal life, are secured as the gift of God through Jesus Christ. There is an infinite fulness of grace and all blessings treasured up in Christ, for those who seek his salvation. This covenant was all David's salvation, he so well knew the holy law of God and the extent of his own sinfulness, that he perceived what was needful for his own case in this salvation. It was therefore all his desire. In comparison, all earthly objects lost their attractions; he was willing to give them up, or to die and leave them, that he might enjoy full happiness, Psalm 73:24-28. Still the power of evil, and the weakness of his faith, hope, and love, were his grief and burden. Doubtless he would have allowed that his own slackness and want of care were the cause; but the hope that he should soon be made perfect in glory, encouraged him in his dying moments.