Even a fool is considered wise when he keeps silent, discerning when he seals his lips.
Proverbs 17:28 HCSB
This one speaks for itself. When in doubt, keep your mouth shut. Talking without thinking makes you look foolish, even those who are foolish can appear to be wise by not blurting out the first thing that comes to mind.