Are wisdom and prudence the greatest gifts?

Jesus, being wise and prudent would seem to be a very good thing. How is it that here You say that Your teachings are hidden from the wise and prudent and revealed to babes? We know the answer from Your word. Prudence and wisdom, of which Solomon had abundance, did not necessarily always lead to a closer walk with You.