Proverbs 9:6-10 says,
"Leave your simple ways behind, and begin to live;
learn to use good judgment.
Anyone who rebukes a mocker will get an insult in return. Anyone who corrects the wicked will get hurt. So don’t bother correcting mockers; they will only hate you. But correct the wise, and they will love you. Instruct the wise, and they will be even wiser. Teach the righteous, and they will learn even more.
Fear of the LORD is the foundation of wisdom. Knowledge of the Holy One results in good judgment."
How does a person know if they are foolish or wise? The Bible teaches that our reaction to correction gives us the answer. Wow, that's intense. I have noticed this in my life experiences. People who are willing to listen to criticism and consider whether it is true or not and then act upon it tend to keep on growing and bettering themselves. People who do not listen, or who get easily offended when others try to offer them instruction are most likely not wise.
The Life Application Study notes section about these verses says, "Instead of replying with a quick put-down or clever retort when rebuked, listen to what is being said. Learn from your critics; this is the path to wisdom. Wisdom begins with knowing God. He gives insight into living because he created life. To know God you must not just know the facts about him; you must have a personal relationship with him."
So, the key to being a wise person is a close relationship with God. This also helps in not getting hurt when others criticize because a secure relationship with God keeps our hearts safe in feeling his love to the point that we are able to listen to criticism and respond in a way that produces growth.
1 Corinthians 8:2 confirms this, "Anyone who claims to know all the answers doesn't really know very much. But the person who loves God is the one whom God recognizes."