Lunyu XIII. 24. (341)

How, to judge of a man from the likings and dislikings of others, we must know the characteristics of those others.
Tsze-kung asked, saying, "What do you say of a man who is loved by all the people of his neighborhood?" The Master replied, "We may not for that accord our approval of him." "And what do you say of him who is hated by all the people of his neighborhood?" The Master said, "We may not for that conclude that he is bad. It is better than either of these cases that the good in the neighborhood love him, and the bad hate him."

Legge XIII.24.

Tzu-kung asked, '"All in the village like him." What do you think of that?'
The Master said, 'That is not enough.'
'"All in the village dislike him." What do you think of that?'
The Master said, 'That is not enough either. "Those in his village who are good like him and those who are bad dislike him." That would be better.'