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. 11 And God said to him, Because your request is for this thing, and not for long life for yourself or for wealth or for the destruction of your haters, but for wisdom to be a judge of causes; 12 I have done as you said: I have given you a wise and far-seeing heart, so that there has never been your equal in the past, and never will there be any like you in the future. 13 And with this I have given you what you made no request for: wealth and honour, so that no king was ever your equal. 14 And if you go on in my ways, keeping my laws and my orders as your father David did, I will give you a long life. 15 And Solomon, awakening, saw that it was a dream; then he came to Jerusalem, where he went before the ark of the agreement of the Lord, offering burned offerings and peace-offerings; and he made a feast for all his servants.

Matthew Henry's Commentary on 1 Kings 3:4-15

Commentary on 1 Kings 3:1-4

(Read 1 Kings 3:1-4)

He that loved the Lord, should, for his sake, have fixed his love upon one of the Lord's people. Solomon was a wise man, a rich man, a great man; yet the brightest praise of him, is that which is the character of all the saints, even the poorest, "He loved the Lord." Where God sows plentifully, he expects to reap accordingly; and those that truly love God and his worship, will not grudge the expenses of their religion. We must never think that wasted which is laid out in the service of God.

Commentary on 1 Kings 3:5-15

(Read 1 Kings 3:5-15)

Solomon's dream was not a common one. While his bodily powers were locked up in sleep, the powers of his soul were strengthened; he was enabled to receive the Divine vision, and to make a suitable choice. God, in like manner, puts us in the ready way to be happy, by assuring us we shall have what we need, and pray for. Solomon's making such a choice when asleep, and the powers of reason least active, showed it came from the grace of God. Having a humble sense of his own wants and weakness, he pleads, Lord, I am but a little child. The more wise and considerate men are, the better acquainted they are with their own weakness, and the more jealous of themselves. Solomon begs of God to give him wisdom. We must pray for it, James 1:5, that it may help us in our particular calling, and the various occasions we have. Those are accepted of God, who prefer spiritual blessings to earthly good. It was a prevailing prayer, and prevailed for more than he asked. God gave him wisdom, such as no other prince was ever blessed with; and also gave him riches and honour. If we make sure of wisdom and grace, these will bring outward prosperity with them, or sweeten the want of it. The way to get spiritual blessings, is to wrestle with God in prayer for them. The way to get earthly blessings, is to refer ourselves to God concerning them. Solomon has wisdom given him, because he did ask it, and wealth, because he did not.