William Hazlitt said this quote

Let a man's talents or virtues be what they may he will only feel satisfaction in his society as he is satisfied in himself.