Matthew 1:20

He had been dwelling upon this, when an angel of the Lord appeared to him in a dream. "Joseph, son of David," the angel said, "do not be afraid to take Mary for your wife, for her child has been conceived by the power of the Holy Spirit.

Matthew 2:13

After they had left, an angel of the Lord appeared to Joseph in a dream, and said: "Awake, take the child and his mother, and seek refuge in Egypt; and stay there until I bid you return, for Herod is about to search for the child, to put him to death."

Matthew 2:19

But, on the death of Herod, an angel of the Lord appeared in a dream to Joseph in Egypt, and said:

Matthew 7:7-8

Ask, and your prayer shall be granted; search, and you shall find; knock, and the door shall be opened to you.

Mark 10:36

"What do you want me to do for you?" he asked.

Mark 10:38-51

"You do not know what you are asking," Jesus said to them. "Can you drink the cup that I am to drink? or receive the baptism that I am to receive?"

Mark 11:24

And therefore I say to you 'Have faith that whatever you ask for in prayer is already granted you, and you will find that it will be.'

John 14:13-14

Whatever you ask, in my Name, I will do, that the Father may be honored in the Son.

John 15:16

It was not you who chose me, but I who chose you, and I appointed you to go and bear fruit--fruit that should remain, so that the Father might grant you whatever you ask in my Name.

James 1:5-6

If one of you is deficient in wisdom, let him ask wisdom from the God who gives freely to every one without reproaches, and it will be given to him.

1 John 5:14-15

And this is the confidence with which we approach him, that whenever we ask anything that is 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
He had been dwelling upon this, when an angel of the Lord appeared to him in a dream. "Joseph, son of David," the angel said, "do not be afraid to take Mary for your wife, for her child has been conceived by the power of the Holy Spirit.
Matthew 2:13
After they had left, an angel of the Lord appeared to Joseph in a dream, and said: "Awake, take the child and his mother, and seek refuge in Egypt; and stay there until I bid you return, for Herod is about to search for the child, to put him to death."

Ask what

Matthew 7:7
Ask, and your prayer shall be granted; search, and you shall find; knock, and the door shall be opened to you.
Mark 10:36
"What do you want me to do for you?" he asked.
Mark 11:24
And therefore I say to you 'Have faith that whatever you ask for in prayer is already granted you, and you will find that it will be.'
John 14:13
Whatever you ask, in my Name, I will do, that the Father may be honored in the Son.
John 15:16
It was not you who chose me, but I who chose you, and I appointed you to go and bear fruit--fruit that should remain, so that the Father might grant you whatever you ask in my Name.
James 1:5
If one of you is deficient in wisdom, let him ask wisdom from the God who gives freely to every one without reproaches, and it will be given to him.
1 John 5:14
And this is the confidence with which we approach him, that whenever we ask anything that is in accordance with his will, he listens to us.