Mark Twain said this quote

It is better to keep your mouth closed and let people think you are a fool than to open it and remove all doubt.