Matthew 1:20

But while he was contemplating this step, an angel of the Lord appeared to him in a dream and said, "Joseph, son of David, do not be afraid to bring home your wife Mary, for she is with child through the Holy Spirit.

Matthew 2:13

When they were gone, and angel of the Lord appeared to Joseph in a dream and said, "Rise: take the babe and His mother and escape to Egypt, and remain there till I bring you word. For Herod is about to make search for the child in order to destroy Him."

Matthew 2:19

But after Herod's death an angel of the Lord appeared in a dream to Joseph in Egypt, and said to him,

Matthew 7:7-8

"Ask, and it will be given to you; seek, and you will find; knock, and the door will be opened to you.

Mark 10:36

"What would you have me do for you?" He asked.

Mark 10:38-51

"You know not," said He, "what you are asking. Are you able to drink out of the cup from which I am to drink, or to be baptized with the baptism with which I am to be baptized?"

Mark 11:24

That is why I tell you, as to whatever you pray and make request for, if you believe that you have received it it shall be yours.

John 14:13-14

And whatever any of you ask in my name, I will do, in order that the Father may be glorified in the Son.

John 15:16

It is not you who chose me, but it is I who chose you and appointed you that you might go and be fruitful and that your fruit might remain; so that whatever petition you present to the Father in my name He may give you.

James 1:5-6

And if any one of you is deficient in wisdom, let him ask God for it, who gives with open hand to all men, and without upbraiding; and it will be given him.

1 John 5:14-15

And we have an assured confidence that whenever we ask anything in accordance with His will, He listens to us.

Treasury of Scripture Knowledge

Summary

In Gibeon the LORD appeared to Solomon in a dream by night: and God said, Ask what I shall give thee.

Bible References

In a dream

Matthew 1:20
But while he was contemplating this step, an angel of the Lord appeared to him in a dream and said, "Joseph, son of David, do not be afraid to bring home your wife Mary, for she is with child through the Holy Spirit.
Matthew 2:13
When they were gone, and angel of the Lord appeared to Joseph in a dream and said, "Rise: take the babe and His mother and escape to Egypt, and remain there till I bring you word. For Herod is about to make search for the child in order to destroy Him."

Ask what

Matthew 7:7
"Ask, and it will be given to you; seek, and you will find; knock, and the door will be opened to you.
Mark 10:36
"What would you have me do for you?" He asked.
Mark 11:24
That is why I tell you, as to whatever you pray and make request for, if you believe that you have received it it shall be yours.
John 14:13
And whatever any of you ask in my name, I will do, in order that the Father may be glorified in the Son.
John 15:16
It is not you who chose me, but it is I who chose you and appointed you that you might go and be fruitful and that your fruit might remain; so that whatever petition you present to the Father in my name He may give you.
James 1:5
And if any one of you is deficient in wisdom, let him ask God for it, who gives with open hand to all men, and without upbraiding; and it will be given him.
1 John 5:14
And we have an assured confidence that whenever we ask anything in accordance with His will, He listens to us.