If your law had not been my delight, I would have perished in my affliction.
This psalm pursues two chief ends: to exhort God's children toward a holy life, and to establish the Law as the rule and form of true worship. The psalmist weaves in promises to animate believers to live justly, and complaints against the wicked who despise the Law, lest the faithful be corrupted by their example. Though he moves from one matter to another, the composition is not a heap of scattered thoughts, but holds together by a living connection.
AI summary
Commenting on Psalm 119:1-176
Here is, 1. The great distress that David was in. He was in affliction, and ready to perish in his affliction, not likely to die, so much as likely to despair; he was ready to give up all for gone, and to look upon himself as cut off from God's sight; he therefore admires the goodness of God to him, that he had not perished...
I have seen an end of all perfection,.... An end, limit, or border, to every country, as the Syriac version; as there is to every kingdom and state, and to the whole world; but none to the commandment of God: or an end of all created beings, the finished works of God, the most perfect in their kind.