We have here the general principles on which the godly stand.
It gives the believer's trust in God—the principles of His dealings—with the result as in man, all " the foundations are destroyed," and the righteous, though righteous, have in themselves no defense. But there is a God that sitteth above, where the workings of the ungodly do not touch the foundations of His throne, and that trieth thence the children of men—therefore trieth indeed the righteous. But it is judgment, and the destruction on the ungodly; it flows from His very character, in which the righteous trust.
This Psalm shows the confidence of the truth of Christ's Spirit (wheresoever) in Jehovah, contrasting itself with the unrighteousness of that around Him, which apparently (and actually as to the nation so) prevented the interference of Jehovah, and which, therefore, called for Jehovah's help in righteousness—and against, as itself in this place of righteousness and therefore pleading with His, the external enemies who took advantage of, and were the rod of, the nation's unrighteousness. Come what would, the point of known faith (known to faith) was that Jehovah was " in his holy temple:... his eyes behold," etc.
Note.—Would it not seem from this Psalm and Psa. 34, that those who seek security and blessing on the earth, draw their confidence from the resurrection of the Lord Jesus Christ, as a Man delivered? Compare also Acts 13:33, 34, and Isaiah 50, already cited, and also 55.