Arthur Schopenhauer said this quote

The ingenious person will above all strive for freedom from pain and annoyance, for tranquility and leisure, and consequently seek a quiet, modest life, as undisturbed as possible, and accordingly, after some acquaintance with so-called human beings, choose seclusion and, if in possession of a great mind, even solitude. For the more somebody has in himself, the less he needs from the outside and the less others can be to him. Therefore, intellectual distinction leads to unsociability.