1 Kings 3:10
8 Your servant stands among your chosen people; they are a great nation that is too numerous to count or number. 9 So give your servant a discerning mind so he can make judicial decisions for your people and distinguish right from wrong. Otherwise no one is able to make judicial decisions for this great nation of yours.” 10 The Lord was pleased that Solomon made this request. 11 God said to him, “Because you asked for the ability to make wise judicial decisions, and not for long life, or riches, or vengeance on your enemies, 12 I grant your request and give you a wise and discerning mind superior to that of anyone who has preceded or will succeed you.
Wisdom of Solomon 7:7
5 For no king has had a different beginning of existence; 6 there is for all one entrance into life, and one way out. 7 Therefore I prayed, and understanding was given me; I called on God, and the spirit of wisdom came to me. 8 I preferred her to scepters and thrones, and I accounted wealth as nothing in comparison with her. 9 Neither did I liken to her any priceless gem, because all gold is but a little sand in her sight, and silver will be accounted as clay before her.
Notes and References
"... The apocryphal book, the Wisdom of Solomon, was written in the late Second Temple period, sometime between 220 BCE and 50 CE. This Jewish work was ascribed to Solomon, though that attribution was doubted already in premodern times. Interestingly, a passage in this work offers the only detailed description of Solomon’s birth in the entire Second Temple literature ... Solomon’s name is never explicitly mentioned in the text of the Wisdom of Solomon, but it is clear that he is the implicit speaker, as this “king” goes on to describe how he prayed for wisdom (Wisdom 7:7–9:18; compare 1 Kings 3) and built the Temple (Wisdom 9:8). However, the passage is neither a historical account of Solomon’s birth nor an interpretation of the story in 2 Samuel 12. Instead, it describes the same birth process that is true of all natural births across the world. The point of this passage is to emphasize Solomon’s similarity with all other mortals ..."
Kalimi, Isaac Writing and Rewriting the Story of Solomon in Ancient Israel (p. 175) Cambridge University Press, 2019