George Santayana said this quote

If a man really knew himself he would utterly despise the ignorant notions others might form on a subject in which he had such matchless opportunities for observation.