I considered my ways and turned my steps to Your testimonies.
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
David had said he would keep God's word (Psa 119:57), and it was well said; now here he tells us how and in what method he pursued that resolution. 1. He thought on his ways. He thought beforehand what he should do, pondering the path of his feet (Pro 4:26), that he might walk surely, and not at all adventures.
Commenting on Psalm 119:59-60
At midnight I will rise to give thanks unto thee,.... Not only send up an ejaculatory thanksgiving upon his bed, but rise up from it and shake off his sleep, and in a set, serious, solemn manner, praise the Lord.