Confucius. Book 4, Chapter 17.
Book 4, Le Jin.
The Master said, "When we see men of worth, we should think of equaling them; when we see men of a contrary character, we should turn inwards and examine ourselves."
Text source: Lun Yu, The Confucian Analects. Translated by James Legge.