Matthew 1:20

But while he was thinking of these things, behold, an angel of the Lord appeared to him in a dream, saying: Joseph, son of David, fear not to take home Mary your wife; for that which is begotten in her is of the Holy Spirit.

Matthew 2:13

When they had departed, behold, an angel of the Lord appeared to Joseph in a dream, saying: Arise, and take the young child and his mother, and flee into Egypt, and be there till I bring you word; for Herod is about to seek for the young child, to destroy him.

Matthew 2:19

But when Herod was dead, behold, an angel of the Lord appeared in a dream to Joseph in Egypt,

Matthew 7:7-8

Ask, and it shall be given you; seek, and you shall find; knock, and it shall be opened to you.

Mark 10:36

He said to them: "What do you wish me to do for you?

Mark 10:38-51

Jesus said to them: You know not what you ask. Are you able to drink the cup that I drink, and to be immersed with the immersion with which I am immersed?

Mark 11:24

For this reason I say to you: All things that you ask for in prayer, believe that you will receive them, and they shall be yours.

John 14:13-14

and whatever you ask in my name, I will do, that the Father may be glorified in the Son.

John 15:16

You have not chosen me, but I have chosen you, and appointed you, that you may go and bring forth fruit, and that your fruit may remain; that whatever you ask of the Father in my name, he may give you.

James 1:5-6

Now, if any of you lack wisdom, let him ask of God, who gives to all liberally, and upbraids not; and it shall be given him.

1 John 5:14-15

And this is the confidence that we have toward him, that if we ask any thing according to his will, he hears 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 thinking of these things, behold, an angel of the Lord appeared to him in a dream, saying: Joseph, son of David, fear not to take home Mary your wife; for that which is begotten in her is of the Holy Spirit.
Matthew 2:13
When they had departed, behold, an angel of the Lord appeared to Joseph in a dream, saying: Arise, and take the young child and his mother, and flee into Egypt, and be there till I bring you word; for Herod is about to seek for the young child, to destroy him.

Ask what

Matthew 7:7
Ask, and it shall be given you; seek, and you shall find; knock, and it shall be opened to you.
Mark 10:36
He said to them: "What do you wish me to do for you?
Mark 11:24
For this reason I say to you: All things that you ask for in prayer, believe that you will receive them, and they shall be yours.
John 14:13
and whatever you ask in my name, I will do, that the Father may be glorified in the Son.
John 15:16
You have not chosen me, but I have chosen you, and appointed you, that you may go and bring forth fruit, and that your fruit may remain; that whatever you ask of the Father in my name, he may give you.
James 1:5
Now, if any of you lack wisdom, let him ask of God, who gives to all liberally, and upbraids not; and it shall be given him.
1 John 5:14
And this is the confidence that we have toward him, that if we ask any thing according to his will, he hears us.