Ecclesiastes 2:9 Midrash

וְגָדַ֣לְתִּי וְהוֹסַ֔פְתִּי מִכֹּ֛ל שֶׁהָיָ֥ה לְפָנַ֖י בִּירוּשָׁלִָ֑ם אַ֥ף חָכְמָתִ֖י עָ֥מְדָה לִּֽי׃

So I was great, and increased more than all that were before me in Jerusalem; also my wisdom stood me in stead.

Read midrashic interpretation of Ecclesiastes 2:9: and classical rabbinic exegesis.