Jeremiah9:22

כֹּה אָמַר יְהוָה אַל־יִתְהַלֵּל חָכָם בְּחָכְמָתוֹ וְאַל־יִתְהַלֵּל הַגִּבּוֹר בִּגְבוּרָתוֹ אַל־יִתְהַלֵּל עָשִׁיר בְּעָשְׁרוֹ׃

Thus said the Eternal: "Let not the wise man boast of his wisdom, and let not the mighty man boast of his might, let not the rich man boast of his riches.

Jeremiah 9:22

כֹּה אָמַר יְהוָה

Yirmeyahu / Jeremiah 9:22 · Pshat

Jeremiah 9:22

כֹּה אָמַר יְהוָה אַל־יִתְהַלֵּל חָכָם בְּחָכְמָתוֹ וְאַל־יִתְהַלֵּל הַגִּבּוֹר בִּגְבוּרָתוֹ אַל־יִתְהַלֵּל עָשִׁיר בְּעָשְׁרוֹ׃

Thus said the Eternal: "Let not the wise man boast of his wisdom, and let not the mighty man boast of his might, let not the rich man boast of his riches.

Pshat פְּשָׁט

Wisdom without the main thing

Brains, strength and money seem like a reliable shield. But there comes a day when none of them helps.

Rashi: do not boast that you are wise, for you rejected the word of the Eternal, and what good is wisdom to you? Boast of it only if you have understood and know Him. Metzudat David: the wise will not save his soul by wisdom, the mighty by might, and the rich will not ransom it with wealth.

How Rashi and Metzudat David explain it

Rashi Let not the wise boast

Do not boast, saying: "We are wise", for you have rejected My word, and what good is wisdom to you? If you have understood and know Me, then boast of your wisdom.

Metzudat David Let not the wise boast

For the wise cannot save his soul by his wisdom, and the mighty cannot save his soul by his might, and the rich will not ransom his soul with his wealth. So they have nothing to boast of, for then these will be of no use to them.

Takeaway

The words "you have rejected My word, and what good is wisdom to you" Rashi takes from the same book: "Behold, they have rejected the word of the Eternal, and what wisdom do they have?" (Yirmeyahu / Jeremiah 8:9).
Yirmeyahu (Jeremiah) says this before the destruction of Yerushalayim (Jerusalem). So Metzudat David explains: on the day of disaster neither wisdom, nor might, nor wealth will save.