Even a fool is thought wise if he keeps silent, and discerning if he holds his tongue (v28).
There are times in life when it is better to say nothing than to say the wrong words. Some situations are beyond our experience or wisdom, and those moments require few, if any, well chosen words.
When people are in anguish, our presence alone is often enough. Job's friends started well, they sat on the ground with him for 7 days, and no-one said a word (Job 2v13).
It's when they started trying to explain & fix the situation that they added insult to his injury. Job eventually and rather sarcastically answered his friends "If only you would be altogether silent! For you that would be wisdom" (Job 13v5).
We all need the wisdom to know when to keep silent, not just so we look wise and discerning, but also to best help those we care for.