All who are prudent act with knowledge, but fools expose their folly. (NIV)
Every prudent man deals with knowledge, but a [self-confident] fool exposes and flaunts his folly. (AMP)
Every prudent man dealeth with knowledge: but a fool layeth open his folly. (KJV)