[2] (Proverbs 23:24): "The father of the righteous will greatly rejoice, and he who sires a wise son will be glad in him" - Rabbi Ishmael said: Blessed is David, King of Israel, who merited to give birth to a wise son and to rejoice in his wisdom, therefore it is said "and he who sires a wise son will be glad in him." What is written after it - (Proverbs 23:25): "Let your father and your mother be glad" - Rabbi Akiva said: Even the Holy One, Blessed be He, and Wisdom rejoice in him: "Let your father" - this is the Holy One, Blessed be He; "and your mother" - this is Wisdom, as it is said (Proverbs 2:3): "For if you cry for discernment."
Solomon Inherits David's Hunger for Wisdom
Midrash Mishlei 23:2
(משלי כג כד): "גיל יגיל אבי צדיק ויולד חכם ישמח בו" - אמר רבי ישמעאל: אשרי דוד מלך ישראל שזכה להוליד בן חכם ולשמוח בחכמתו, לכך נאמר "ויולד חכם ישמח בו", מה כתיב אחריו - (משלי כג כה): "ישמח אביך ואמך" - אמר רבי עקיבא: אפילו הקב"ה והחכמה שמחים בו: ישמח אביך - זה הקב"ה, ואמך - זו החכמה, שנאמר (משלי ב ג): "כי אם לבינה תקרא".