The Doctrine of the Mean. Chapter 6..
The Master said, "There was Shun: ‹ He indeed was greatly wise! Shun loved to question others, and to study their words, though they might be shallow. He concealed what was bad in them, and displayed what was good. He took hold of their two extremes, determined the Mean, and employed it in his government of the people. It was by this that he was Shun!"
Text source: The Doctrine of the Mean. Translated by James Legge.