Emil M. Cioran said this quote

The more we frequent men, the blacker our thoughts; and when, to clarify them, we return to our solitude, we find there the shadow they have cast.