Jamieson-Fausset-Brown Bible Commentary
While opposed by the wicked, and opposing them, the pious delight in those who fear God, but, after all, rely for favor and guidance not on merit, but mercy.
John Gill Bible Commentary
Before I was afflicted, I went astray,.... From God; from his word, his ways and worship; like a lost sheep from the shepherd, the fold, the flock, and the footsteps of it; see Psa 119:176; Not that he wilfully, wickedly, maliciously, and through contempt, departed from his God; this he denies, Psa 18:21; but through the weakness of the flesh, the prevalence of corruption, and force of temptation, and very much through a careless, heedless, and negligent frame of spirit, he got out of the right way, and wandered from it before he was well aware. The word is used of erring through ignorance, Lev 5:18; this was in a time of prosperity, when, though he might not, like Jeshurun, wax fat and kick, and forsake and lightly esteem the Rock of his salvation; or fall into temptations and harmful lusts, and err from the faith, and be pierced with many sorrows, as too much love of the world brings men into; yet he might become inattentive to the duties of religion, and be negligent of them, which is a common case;
but now have I kept thy word: having been afflicted with outward and inward afflictions, afflictions of body and mind; afflictions in person, in family and estate; afflictions in soul, through indwelling sin, the temptations of Satan, and the hidings of God's face: all this brought him back again to God, to his word, ways, and worship; he betook himself to reading and hearing the word, if he might find any thing to relieve and comfort him under his trials; he observed the doctrines of grace in it, and kept the precepts of it, and walked in all the commandments and ordinances of it, being restored by afflictions.
Matthew Henry Bible Commentary
Here, 1. David pleads that God is good to all the creatures according to their necessities and capacities; as the heaven is full of God's glory, so the earth is full of his mercy, full of the instances of his pity and bounty. Not only the land of Canaan, where God is known and worshipped, but the whole earth, in many parts of which he has no homage paid him, is full of his mercy. Not only the children of men upon the earth, but even the inferior creatures, taste of God's goodness. His tender mercies are over all his works. 2. He therefore prays that God would be good to him according to his necessity and capacity: "Teach me thy statutes. Thou feedest the young ravens that cry, with food proper for them; and wilt thou not feed me with spiritual food, the bread of life, which my soul needs and craves, and cannot subsist without? The earth is full of thy mercy; and is not heaven too? Wilt thou not then give me spiritual blessings in heavenly places?" A gracious heart will fetch an argument from any thing to enforce a petition for divine teaching. Surely he that will not let his birds be unfed will not let his children be untaught.