Since the enemy watches you constantly, waiting for an opportunity to sow evil in you, be doubly watchful over yourself, lest you fall in the nets spread for you. As soon as he shows you some fault in your neighbor, hasten to repel this thought, lest it take root in you and grow. Cast it out, so that no trace is left in you, and replace it by the thought of the good qualities you know your neighbor to possess, or of those people generally should have. If you still feel the impulse to pass judgment, add to this the truth that you are given no authority for this and that the moment you assume this authority you thereby make yourself worthy of judgment and condemnation, not before powerless men, but before God, the all-powerful Judge of all.
This reversal of thoughts is the strongest means, not only for repelling accidental critical thoughts, but also for completely freeing yourself of this vice. Even if a person’s sin is not only obvious, but very grievous and comes from a hardened and unrepentant heart, do not condemn him, but raise your eyes to the wondrous and incomprehensible judgments of God; then you will see that many people, formerly full of iniquity, later repented and reached a high degree of sanctity, and that, on the other hand, others, who were on a high level of perfection, fell into a deep abyss. Take care, lest you also suffer this calamity through judging others.
“Unseen Warfare” by St. Theophan the Recluse