Seneca said this quote

But nothing will help quite so much as just keeping quiet, talking with other people as little as possible, with yourself as much as possible. For conversation has a kind of charm about it, an insinuating and insidious something that elicits secrets from us just like love or liquor. Nobody will keep the things he hears to himself, and nobody will repeat just what he hears and no more. Neither will anyone who has failed to keep a story to himself keep the name of his informant to himself. Every person without exception has someone to whom he confides everything that is confided to himself. Even supposing he puts some guard in his garrulous tongue and is content with a single pair of ears, he will still be the creator of a host of later listeners – such is the way in which what was but a little while before a secret becomes common rumor.