It is good for me that I have been afflicted; that I might learn thy statutes.
The psalm in which this verse stands exalts God's law and points out its sacredness. That law is to be the rule of life, and study of God's Word teaches the principles of righteousness and distinguishes right from wrong and truth from error. The psalm is to be read with solemn earnestness as testimony that the wickedness of the world has reached the point where the Lord will certainly interfere. It is good to have been afflicted because affliction teaches God's statutes. Adversity is a discipline meant to strengthen faith, patience, forbearance, heavenly-mindedness, and trust in God, and is not a reason to mourn over God's providence. Affliction can loosen dependence on earthly support and lead to greater and more continual trust in the Savior. Trials and losses purify and refine the afflicted person and prepare and fit them for immortality. Affliction can be a mercy for good, in that even childhood affliction can turn the heart away from the world and its unsatisfying pleasures and incline it toward heaven's lasting and enduring attractions. In deep sorrow God gives rich grace and tokens of grace with strength to endure pain, even when He does not remove it. Affliction learned in this way can lead the afflicted to praise and thanksgiving.
It is good to have been afflicted because affliction teaches God's statutes. The statutes to be learned are the Ten Commandments, the moral law spoken by God at Sinai, the one moral law of His government. Before affliction men go astray, but affliction corrects the straying and turns them back to keep His word. Affliction is not a blessing in itself, but when sanctified and endured in willing submission and trust it invariably works present and future good. God afflicts in faithfulness and His judgments are right, correcting in measure like a father the son he loves, refining in the furnace to bring forth the peaceable fruit of righteousness. ## Words and Setting The statutes to be learned through affliction are the law of the Lord, the moral law, the Ten Commandments spoken by God at Sinai. They are the one moral law growing out of God's attributes for His government, where obedience or disobedience decides good and evil, life and death, and what is said of the statutes applies to these commandments and to no other law. This law is perfect, reaches the thoughts and intents of the heart, and is enduring, its statutes neither abolished nor in need of change. Affliction is good because it teaches a person these statutes. Statutes is one of the names for God's law in the psalm, along with commandments, testimonies, precepts, judgments, ways, and words. The terms for God's commands are often used synonymously with the law, and the context shows how much the term includes. Together they reflect God's character and possess righteousness, holiness, truth, wisdom, mercy, and love. The law so honored reveals duty and the righteousness God requires, exposes sin, and reveals the corruption of the heart. It is a source of light and understanding, revealing sin and guiding people back into harmony with God. Its instruction leads the penitent to Christ and to righteousness. The verse belongs to a psalm devoted to God's law that serves worshipers in every age and class within