"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" (2 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