Here the Lord excludes an objection that might be made. For in the old law it was promised that the Lord would come to judge: "The Lord will come to judge" (Is 3:14). So someone might say that the Son of God had not come to give eternal life but in order to judge the world. The Lord rejects this. First, he shows that he has not come to judge. Secondly, he proves it (v 18).
So he says: The Son of God has not come to judge, because God did not send his Son, referring to his first coming, into the world to judge the world, but that the world might be saved through him. The same thing is found be...low (12:47): "I did not come to judge the world, but to save the world."
Now man's salvation is to attain to God: "My salvation is in God" (Ps 61:8). And to attain to God is to obtain eternal life; hence to be saved is the same as to have eternal life. However, because the Lord says, "I did not come to judge the world," men should not be lazy or abuse God's mercy, or give themselves over to sin: because although in his first coming he did not come to judge but to forgive, yet in his second coming, as Chrysostom says, he will come to judge but not to forgive. "At the appointed time I will judge with rigor" (Ps 74:3).
However, this seems to conflict with what is said below (9:39): "I came into this world to judge." I answer that there are two kinds of judgment. One is the judgment of distinction, and the Son has come for this in his first coming; because with his coming men are distinguished, some by blindness and some by the light of grace. The other is the judgment of condemnation; and he did not come for this as such.
Source: Commentary on John