Confucius. Book 4, Chapter 7.
Book 4, Le Jin.
The Master said, "The faults of men are characteristic of the class to which they belong. By observing a man's faults, it may be known that he is virtuous."
Text source: Lun Yu, The Confucian Analects. Translated by James Legge.