"And He shall judge the world in righteousness, He shall minister judgment to the people in uprightness" (Psalm 9:8).
Judgment is coming for every person, "as it is appointed unto men once to die, but after this the judgment" (Hebrews 9:27). Many people don't believe it, and still more don't seem to care, but judgment is coming! Be certain of this. We must all meet God our Maker someday.
Furthermore, "He shall judge the world in righteousness," for He is "of purer eyes than to behold evil, and canst not look on iniquity" (Habakkuk 1:13). "He shall judge the world with righteousness, and the people with His truth" (Psalm 96:13; also note Psalm 96:10; 98:9).
All is lost if God judges righteously, however, for "There is none righteous, no, not one" (Romans 3:10), and "Cursed is every one that continueth not in all things which are written in the book of the law to do them" (Galatians 3:10).
But "God was in Christ, reconciling the world unto Himself, . . . hath made Him to be sin for us, who knew no sin; that we might be made the righteousness of God in Him" (II Corinthians 5:19,21). The Lord Jesus, the Son of God, our Creator/Redeemer, has taken our judgment on Himself, and "There is therefore now no |judgment| to them which are in Christ Jesus" (Romans 8:1).
Consequently, "the Father judgeth no man, but hath committed all judgment unto the Son" (John 5:22). God can both judge righteously and yet graciously save all who receive Christ by faith: "Because He hath appointed a day, in the which He will judge the world in righteousness by that man whom He hath ordained; whereof He hath given assurance unto all men, in that He hath raised Him from the dead" (Acts 17:31). Jesus Christ is not only our Creator and righteous Judge, but also our Redeemer, Mediator, Advocate, and Savior! HMM