In Ecclesiastes, he says:
I have seen everything in my days of vanity: there is a just man who perishes in his righteousness, and there is a wicked man who prolongs life in his wickedness. Do not be overly righteous, nor be overly wise: why should you destroy yourself? Do not be overly wicked, nor be foolish: why should you die before your time? It is good that you grasp this, and also not remove your hand from the other; for he who fears God will escape them all.
Here, by the statement “Do not be overly righteous,” he means that you should accept yourself, with your weakness and helplessness, and do not let the ideal self reject the true self, appearing to be a righteous self at all time, and do not use worldly, self-centered wisdom, with which you deceive yourself and believe that you are overly righteous.
—H.E. Metropolitan Youssef, How to Develop Your Personality