1 Kings 3:5-15

5 In Gibeon hath Jehovah appeared unto Solomon, in a dream of the night, and God saith, `Ask -- what do I give to thee?'
6 And Solomon saith, `Thou hast done with Thy servant David my father great kindness, as he walked before Thee in truth and in righteousness, and in uprightness of heart with Thee, and Thou dost keep for him this great kindness, and dost give to him a son sitting on his throne, as [at] this day.
7 And now, O Jehovah my God, Thou hast caused thy servant to reign instead of David my father; and I [am] a little child, I do not know to go out and to come in;
8 and Thy servant [is] in the midst of thy people, whom Thou hast chosen, a people numerous, that is not numbered nor counted for multitude,
9 and Thou hast given to Thy servant an understanding heart, to judge Thy people, to discern between good and evil; for who is able to judge this Thy great people?'
10 And the thing is good in the eyes of the Lord, that Solomon hath asked this thing,
11 and God saith unto him, `Because that thou hast asked this thing, and hast not asked for thee many days, nor asked for thee riches, nor asked the life of thine enemies, and hast asked for thee discernment to understand judgment,
12 lo, I have done according to thy words; lo, I have given to thee a heart, wise and understanding, that like thee there hath not been before thee, and after thee there doth not arise like thee;
13 and also, that which thou hast not asked I have given to thee, both riches and honour, that there hath not been like thee a man among the kings all thy days;
14 and if thou dost walk in My ways to keep My statutes, and My commands, as David thy father walked, then I have prolonged thy days.'
15 And Solomon awaketh, and lo, a dream; and he cometh in to Jerusalem, and standeth before the ark of the covenant of Jehovah, and causeth to ascend burnt-offerings, and maketh peace-offerings. And he maketh a banquet for all his servants,
Young's Literal Translation is in the public domain.