9 And see what great works pride does. Lay it up in your hearts, how much alike, how much as it were upon a par, are the works it does, and the works of charity. Charity feeds the hungry, and so does pride: charity, that God may be praised; pride, that itself may be praised. Charity clothes the naked, so does pride: charity fasts, so does pride: charity buries the dead, so does pride. All good works which charity wishes to do, and does; pride, on the other hand, drives at the same, and, so to say, keeps her horses up to the mark.
But charity is between her and it, and leaves not place for ill-driven pride; not ill-driving, but ill-driven. Woe to the man whose charioteer is pride, for he must needs go headlong! But that, in the good that is done, it may not be pride that sets us on, who knows? Who sees it? Where is it? The works we see: mercy feeds, pride also feeds; mercy takes in the stranger, pride also takes in the stranger; mercy intercedes for the poor, pride also intercedes. How is this? In the works we see no difference.
I dare to say somewhat, but not I; Paul has said it: charity dies, that is, a man having charity confesses the name of Christ, suffers martyrdom: pride also confesses, suffers also martyrdom. The one has charity, the other has not charity. But let him that has not charity hear from the apostle: “If I distribute all my goods to the poor, and if I give my body to be burned, and have not charity, it profits me nothing.” So then the divine Scripture calls us off from the display of the face outwardly to that which is within; from this surface which is vaunted before men, it calls us off to that which is within.
Return to your own conscience, question it. Do not consider what blossoms outwardly, but what root there is in the ground. Is lust rooted there? A show there may be of good deeds, truly good works there cannot be. Is charity rooted there? Have no fear: nothing evil can come of that. The proud caresses, love is severe. The one clothes, the other smites. For the one clothes in order to please men, the other smites in order to correct by discipline. More accepted is the blow of charity than the alms of pride.
Come then within, brethren; and in all things, whatsoever ye do, look unto God your witness. See, if He sees, with what mind ye do it. If your heart accuse you not that you do it for the sake of display, it is well: fear ye not. But when you do good, fear not lest another see you. Fear lest you do it to the end that you may be praised: let the other see it, that God may be praised. For if you hide it from the eyes of man, you hide it from the imitation of man, you withdraw from God His praise.
Two are there to whom you do the alms: two hunger; one for bread, the other for righteousness. Between these two famishing souls:— as it is written, “Blessed are they that hunger and thirst after righteousness, for they shall be filled:” — between these two famishing persons you the doer of the good work art set; if charity does the work by occasion of the one, therein it has pity on both, it would succor both. For the one craves what he may eat, the other craves what he may imitate. You feed the one, give yourself as a pattern to the other; so have you given alms to both: the one you have caused to thank you for killing his hunger, the other you have made to imitate you by setting him an example.
Source: Homilies on the First Epistle of John (New Advent)