Your statutes have been my songs in the house of my sojourning.
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. David's state and condition; he was in the house of his pilgrimage, which may be understood either as his peculiar trouble (he was often tossed and hurried, and forced to fly) or as his lot in common with all. This world is the house of our pilgrimage, the house in which we are pilgrims; it is our tabernacle; it is our inn.
This I had, because I kept thy precepts. Either the comfort he had from the word, the pleasure and delight he had in it, being his songs in his pilgrimage, Psa 119:50; see Psa 119:165; or this knowledge of the name of God, and the remembrance of it, and his carefulness and diligence in it in the night season, were of the Lord, and gifts...