Matthew 1:20

But just as this thought occurred to him, an angel of the Lord appeared to him in a dream, and said, "Joseph, descendant of David, do not fear to take Mary as your wife, for it is through the influence of the Holy Spirit that she has become an expectant mother.

Matthew 2:13

After they had gone, an angel of the Lord appeared to Joseph in a dream and said, "Wake up! Tenderly take the child and His mother, and escape to Egypt; stay there until I further direct you, for Herod is going to search for the child to destroy Him."

Matthew 2:19

But after Herod died, an angel of the Lord in a dream appeared to Joseph in Egypt,

Matthew 7:7-8

"Keep on asking, and the gift will be given you; keep on seeking, and you will find; keep on knocking, and the door will open to you.

Mark 10:36

He asked them, "What do you want me to do for you?"

Mark 10:38-51

Jesus said to them, "You do not realize what you are asking for. Can you drink the cup that I am drinking, or endure the baptism of agony that I am to endure?"

Mark 11:24

So then I tell you, whenever you pray and ask for anything, have faith that it has been granted you, and you will get it.

John 14:13-14

And anything you ask for as bearers of my name I will do for you, so that the Father may be glorified through the Son.

John 15:16

You have not chosen me; I have chosen you, and appointed you to go and bear fruit, that your fruit may remain too, so that the Father may grant you, as bearers of my name, whatever you ask Him for.

James 1:5-6

But if any one of you is deficient in wisdom, let him ask God who generously gives to everyone and never reproaches one with its lack, and it will be given to him.

1 John 5:14-15

And this is the confidence that we have in Him, that if we ask for anything that is in accordance with His will, He will listen 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 just as this thought occurred to him, an angel of the Lord appeared to him in a dream, and said, "Joseph, descendant of David, do not fear to take Mary as your wife, for it is through the influence of the Holy Spirit that she has become an expectant mother.
Matthew 2:13
After they had gone, an angel of the Lord appeared to Joseph in a dream and said, "Wake up! Tenderly take the child and His mother, and escape to Egypt; stay there until I further direct you, for Herod is going to search for the child to destroy Him."

Ask what

Matthew 7:7
"Keep on asking, and the gift will be given you; keep on seeking, and you will find; keep on knocking, and the door will open to you.
Mark 10:36
He asked them, "What do you want me to do for you?"
Mark 11:24
So then I tell you, whenever you pray and ask for anything, have faith that it has been granted you, and you will get it.
John 14:13
And anything you ask for as bearers of my name I will do for you, so that the Father may be glorified through the Son.
John 15:16
You have not chosen me; I have chosen you, and appointed you to go and bear fruit, that your fruit may remain too, so that the Father may grant you, as bearers of my name, whatever you ask Him for.
James 1:5
But if any one of you is deficient in wisdom, let him ask God who generously gives to everyone and never reproaches one with its lack, and it will be given to him.
1 John 5:14
And this is the confidence that we have in Him, that if we ask for anything that is in accordance with His will, He will listen to us.