I’m pretty sure God said no one would ever exceed Solomon in wisdom.
FWIW, in my view, there are 3 particular levels of cognition: 1) knowledge (awareness of things as they are), 2) wisdom (what to do about it), and 3) understanding (why?).
Now that Solomon was wise means that he KNEW WHAT HE OUGHT TO DO. It doesn't mean he was necessarily "smart". The fact that he didn't do what he knew, while no knock on his wisdom, was nevertheless an obedience/behavioral problem, and leaves him in a chaos when it comes to "smarts" (which is a horse of another color).