"A divine sentence is on the lips of the king; in judgment his mouth does not transgress" (Proverbs 16:10). Rabbi Alexandrai said: How fitting was the wisdom of Solomon, for he taught wisdom to others out of his own self. How so? Solomon said: I call heaven and earth to witness against me, that of all the wisdom which the Holy One, blessed be He, gave to me, I never brought forth from my mouth a word of falsehood, but everything was spoken in justice. Therefore it is said, "in judgment his mouth does not transgress" (Proverbs 16:10).
Solomon Taught Wisdom and Spoke Only in Justice
Midrash Mishlei 16:2
(משלי טז י): "קסם על שפתי מלך, במשפט לא ימעל פיו" - אמר רבי אלכסנדראי: נאה חכמתו של שלמה, שלימד חכמה לאחרים מנפשו. כיצד, אמר שלמה: מעיד אני עליי שמיים וארץ, שכל חכמה שנתן לי הקב"ה, לא הוצאתי מפי דבר שקר, אלא הכל במשפט, לכך נאמר "במשפט לא ימעל פיו".