Putting the picture together correctly, we can grasp the thread of the psalmist's thoughts as his trial proceeded. The psalmist was in grave spiritual danger of misjudging his suffering as punishment for sin. In reality, he was harshly judging God, accusing Him of unfairly overdoing a painful correction. Is it even possible to find God being unjust? Earlier in the psalm, the psalmist was indeed guilty of a sin: He clearly perceived his envy of the wicked. However, his grasp of the real problem was late in coming: that he was filled with fear and lacked faith that God was truly always with him, overseeing his life, his best interests, and therefore his spiritual development.
His lack of faith and its resulting fear drove his envy, twisting his mind into perceiving the wicked as better off. The issue clarified when he went into the sanctuary and began to see through prayer that God was fully justified and not picking on him unfairly. By the term “sanctuary,” he may have literally meant the Tabernacle or Temple, but we can understand that it does not have to be a literal building but a place of private prayer in communion with God where He enabled him to think correctly. Verses 21-24 clarify this.
Thus, the psalmist immediately began a four-step program:
1. He continued on by faith, enduring the suffering.
2. He prayed fervently for God's solution to take effect.
3. He firmly rejected any attempt to solve the problem on the basis of his own spiritual righteousness.
4. He was thoughtfully careful that he did not misjudge his circumstances any further.
The truth expressed in II Timothy 1:6-7 is helpful. “Therefore I remind you to stir up the gift of God which is in you through the laying on of my hands. For God has not given us a spirit of fear, but of power and of love and of a sound mind.” God's gift of His Spirit enables us to confront our fears and make sound spiritual judgments in alignment with His will. It leads us to understand that, once we are called and converted, these trials, though sometimes very difficult, are rarely punishments. They are exercises in learning good judgment regarding faith, love, and fear.