1 Kings 3:1-10

1 Solomon became the son-in-law of Pharaoh, king of Egypt, and took Pharaoh's daughter as his wife, keeping her in the town of David, till the house he was building for himself, and the house of the Lord and the wall round Jerusalem, were complete.
2 But all this time the people were making their offerings in the high places, because no house had been put up to the name of the Lord till those days.
3 And Solomon, in his love for the Lord, kept the laws of David his father; but he made offerings and let them go up in smoke on the high places.
4 And the king went to Gibeon to make an offering there, because that was the chief high place: it was Solomon's way to make a thousand burned offerings on that altar.
5 In Gibeon, Solomon had a vision of the Lord in a dream by night; and God said to him, Say what I am to give you.
6 And Solomon said, Great was your mercy to David my father, as his life before you was true and upright and his heart was true to you; and you have kept for him this greatest mercy, a son to take his place this day.
7 And now, O Lord my God, you have made your servant king in the place of David my father; and I am only a young boy, with no knowledge of how to go out or come in.
8 And your servant has round him the people of your selection, a people so great that they may not be numbered, and no account of them may be given.
9 Give your servant, then, a wise heart for judging your people, able to see what is good and what evil; for who is able to be the judge of this great people?
10 Now these words and Solomon's request were pleasing to the Lord.