1 Kings 3:28 (ESV)

28 And all Israel heard of the judgment that the king had rendered, and they stood in awe of the king, because they perceived that the wisdom of God was in him to do justice.

Solomon was wise. No man has ever been so wise. But later, on the throne of David came a man who was more than a man, namely Jesus Christ. He was God, and thus greater than Solomon (Matthew 12:42). He is Christ in whom are hidden all the treasures of wisdom and knowledge (Colossians 2:3). When he comes, perfect justice is done and he will bring paradise with him (Isaiah 11:1–4).