Oscar Wilde said this quote

One has a right to judge a man by the effect he has over his friends.