Now the way to avoid such a failing is to consider one's own defects, for it is because one considers the defects of others and not his own that he seems to himself to be something in comparison to others in whom he observes defects; and not considering his own, he has a feeling of pride. Hence he says, "But let every one prove", i.e., diligently examine, "his", i.e., his own, work, both inward and outward: "Let a man prove himself" (1 Cor 11:28), "and so in himself", i.e., in his own conscience, "he shall have glory", i.e., shall glory and rejoice—"For our glory is this, the testimony of our ...conscience" (2 Cor 1:12)—"and not in another", i.e., not in being praised by someone else. Or thus: "in himself", i.e., in things that are his own, "he will have glory", i.e., he will glory by considering himself; "and not in another", i.e., not by considering others: "Gladly, therefore, will I glory in my infirmities, that the power of Christ may dwell in me" (2 Cor 12:9). Or, "in himself", i.e., in God Who dwells in him, "he will glory," i.e., the glory will be His; "and not in any other" save in God: "He that glorieth, let him glory in the Lord" (2 Cor 10:17).
Source: Commentary on Galatians