A Matrona asked R. Jose b. Halafta why it was said "God gives wisdom to the wise.” The answer was: "Because they know how to make use of it, they study in schools and colleges and do not waste it in circuses and amphitheatres."
Why God Gives Wisdom Only to the Wise
Gaster, Exempla no. 40; cf. Kohelet Rabbah 1:7