Matthew 1:20

But as he considered this, behold, an angel of the Lord appeared to him in a dream, saying, "Joseph, son of David, do not be afraid to take Mary your wife, for that which is conceived in her is of the Holy Spirit.

Matthew 2:13

Now when they had departed, behold, an angel of the Lord appeared to Josnt in a dream and said, "Rise, take the child and his mother, and flee to Egypt, and stay there until I tell you; for Herod is about to search for the child, to destroy him."

Matthew 2:19

But when Herod died, behold, an angel of the Lord appeared in a dream to Josnt in Egypt,

Matthew 7:7-8

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

Mark 10:36

And he said to them, "What do you want me to do for you?"

Mark 10:38-51

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

Mark 11:24

Therefore I tell you, whatever you ask for in prayer, believe that you have received it, and it will 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 did not choose me, but I chose you and appointed you that you should go and bear fruit, and that your fruit should remain, that whatever you ask the Father in my name he may give you.

James 1:5-6

If any of you lacks wisdom, let him ask of God, who gives to all generously and without reproach, and it will be given to him.

1 John 5:14-15

And this is the confidence which we have in him, that if we ask anything 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 as he considered this, behold, an angel of the Lord appeared to him in a dream, saying, "Joseph, son of David, do not be afraid to take Mary your wife, for that which is conceived in her is of the Holy Spirit.
Matthew 2:13
Now when they had departed, behold, an angel of the Lord appeared to Josnt in a dream and said, "Rise, take the child and his mother, and flee to Egypt, and stay there until I tell you; for Herod is about to search for the child, to destroy him."

Ask what

Matthew 7:7
"Ask, and it will be given to you; seek, and you will find; knock, and it will be opened to you.
Mark 10:36
And he said to them, "What do you want me to do for you?"
Mark 11:24
Therefore I tell you, whatever you ask for in prayer, believe that you have received it, and it will 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 did not choose me, but I chose you and appointed you that you should go and bear fruit, and that your fruit should remain, that whatever you ask the Father in my name he may give you.
James 1:5
If any of you lacks wisdom, let him ask of God, who gives to all generously and without reproach, and it will be given to him.
1 John 5:14
And this is the confidence which we have in him, that if we ask anything according to his will he hears us.