In Gibeon the Lord appeared to Solomon in a dream by night,
&c.] This was not a common natural dream, but an extraordinary, divine, and supernatural one, a prophetic dream, a night vision, such as God used to speak in to his prophets; in which he had the full use of his reasoning powers, was under divine impressions, and in a spiritual frame of mind, and in the exercise of grace; it was not a mere dream that the Lord did appear to him, but he really did appear to him while sleeping and dreaming, by some display of his glory in some way or another:
and God said, ask what I shall give thee;
he did not hereby dream that God said to him, but he really did say this; bid him ask what he would and it should be given him; he knew what he designed to give, but he would have it asked of him, as he will be inquired of by all his people to do that for them which he has intended and provided for them; and it is encouragement enough for them to ask, since he has promised to give.