As Kat said, learning experience.
1 Kings 3:3-12
3 And Solomon loved the Lord, walking in the statutes of David his father: only he sacrificed and burnt incense in high places.
4 And the king went to Gibeon to sacrifice there; for that was the great high place: a thousand burnt offerings did Solomon offer upon that altar.
5 In Gibeon the Lord appeared to Solomon in a dream by night: and God said, Ask what I shall give thee.
6 And Solomon said, Thou hast shewed unto thy servant David my father great mercy, according as he walked before thee in truth, and in righteousness, and in uprightness of heart with thee; and thou hast kept for him this great kindness, that thou hast given him a son to sit on his throne, as it is this day.
7 And now, O Lord my God, thou hast made thy servant king instead of David my father: and I am but a little child: I know not how to go out or come in.
8 And thy servant is in the midst of thy people which thou hast chosen, a great people, that cannot be numbered nor counted for multitude.
9 Give therefore thy servant an understanding heart to judge thy people, that I may discern between good and evil: for who is able to judge this thy so great a people?
10 And the speech pleased the Lord, that Solomon had asked this thing.
11 And God said unto him, Because thou hast asked this thing, and hast not asked for thyself long life; neither hast asked riches for thyself, nor hast asked the life of thine enemies; but hast asked for thyself understanding to discern judgment;
12 Behold, I have done according to thy words: lo, I have given thee a wise and an understanding heart; so that there was none like thee before thee, neither after thee shall any arise like unto thee.
Hebrews 5:8-14
8 Though he were a Son, yet learned he obedience by the things which he suffered;
9 And being made perfect, he became the author of eternal salvation unto all them that obey him;
10 Called of God an high priest after the order of Melchisedec.
11 Of whom we have many things to say, and hard to be uttered, seeing ye are dull of hearing.
12 For when for the time ye ought to be teachers, ye have need that one teach you again which be the first principles of the oracles of God; and are become such as have need of milk, and not of strong meat.
13 For every one that useth milk is unskilful in the word of righteousness: for he is a babe.
14 But strong meat belongeth to them that are of full age, even those who by reason of use have their senses exercised to discern both good and evil.
Genesis 3:22 And the Lord God said, Behold, the man is become as one of us, to know good and evil: and now, lest he put forth his hand, and take also of the tree of life, and eat, and live for ever:
1 Corinthians 6:2 Do ye not know that the saints shall judge the world? and if the world shall be judged by you, are ye unworthy to judge the smallest matters?
God bless,
Alex