Psalms 119:62

At midnight I will rise to give thanks unto thee because of thy righteous judgments.

The psalm containing the midnight thanksgiving is a sustained exaltation of God's law, upholding its holiness and sacredness. Within that exaltation the divine judgments and testimonies are set forth as guides for life.

The righteous judgments for which thanks is given are God's judgment against persistent transgression and His coming punishment of the wicked. That intervention is certain to come when wickedness has reached its full measure. It carries the assurance that God will not acquit the wicked who defy His law.