(Proverbs 22:29): "Do you see a man skilled in his work?" - Come and see the wisdom of Solomon, who was skilled in the work of the Holy One, blessed be He, for he built the Temple in seven years [as it is said (1 Kings 6:38): "and he built it in seven years"], and his own house he built in thirteen [as it is said (1 Kings 7:1): "and his house Solomon built in thirteen years"]. Another interpretation of "Do you see a man skilled in his work": at the time when the Sanhedrin sought to count him among three kings and four commoners [who have no share in the world to come], the Shekhinah stood before the Holy One, blessed be He, and said before Him: 'Master of the worlds! "Do you see a man skilled" - they wish to count him among the obscure ones!' At that moment a heavenly voice went forth and said to them: "He shall stand before kings, he shall not stand before obscure ones" (Proverbs 22:29).
Solomon Skilled in His Work Stands Before Kings Not the Obscure
Midrash Mishlei 22:8
(משלי כב כט): "חזית איש מהיר במלאכתו" - בוא וראה חכמתו של שלמה, שהיה מהיר במלאכתו של הקב"ה, שבית המקדש בנה לשבע שנים [שנאמר (מלכים א ו לח): "ויבנהו שבע שנים"], וביתו בנה לשלוש עשרה [שנאמר (מלכים א ז א): "ואת ביתו בנה שלמה שלוש עשרה שנה"]. ד"א "חזית איש מהיר במלאכתו" - בשעה שביקשו סנהדרין למנותו עם שלושה מלכים וארבעה הדיוטות, עמדה שכינה לפני הקב"ה, ואמרה לפניו: 'ריבון העולמים! "חזית איש מהיר", הם רוצים למנותו עם חשוכים!', באותה שעה יצאה בת קול ואמרה להם "לפני מלכים יתייצב, בל יתייצב לפני חשוכים".