Lunyu XVI. 4. (437)

Three friendships advantageous, and three injurious.
Confucius said, "There are three friendships which are advantageous, and three which are injurious. Friendship with the uplight; friendship with the sincere; and friendship with the man of much observation:– these are advantageous. Friendship with the man of specious airs; friendship with the insinuatingly soft; and friendship with the glib-tongued:– these are injurious."

Legge XVI.4.

Confucius said, 'He stands to benefit who makes friends with three kinds of people. Equally, he stands to lose who makes friends with three other kinds of people. To make friends with the straight, the trustworthy in word and the well-informed is to benefit. To make friends with the ingratiating in action, the pleasant in appearance and the plausible in speech is to lose.'