Matthew 1:20

but after he had planned this, there appeared an angel of the Lord to him in a dream saying, "Joseph, son of David, fear not to take Mary your wife home, for what is begotten in her comes from the holy Spirit.

Matthew 2:13

After they had gone, there appeared an angel of the Lord to Joseph in a dream, saying, "Rise, take the child and his mother and flee to Egypt; stay there till I tell you. For Herod is going to search for the child and destroy him."

Matthew 2:19

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

Matthew 7:7-8

Ask and the gift will be yours, seek and you will find, knock and the door will open to you;

Mark 10:36

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

Mark 10:38-51

Jesus said, "You do not know what you are asking. Can you drink the cup I have to drink, or undergo the baptism I have to undergo?"

Mark 11:24

So I tell you, whatever you pray for and ask, believe you have got it and you shall have it.

John 14:13-14

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

John 15:16

You have not chosen me, it is I who have chosen you, appointing you to go and bear fruit ??fruit that lasts, so that the Father may grant you whatever you ask in my name.

James 1:5-6

Whoever of you is defective in wisdom, let him ask God who gives to all men without question or reproach, and the gift will be his.

1 John 5:14-15

Now the confidence we have in him is this, that he listens to us whenever we ask anything in accordance with his will;

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 after he had planned this, there appeared an angel of the Lord to him in a dream saying, "Joseph, son of David, fear not to take Mary your wife home, for what is begotten in her comes from the holy Spirit.
Matthew 2:13
After they had gone, there appeared an angel of the Lord to Joseph in a dream, saying, "Rise, take the child and his mother and flee to Egypt; stay there till I tell you. For Herod is going to search for the child and destroy him."

Ask what

Matthew 7:7
Ask and the gift will be yours, seek and you will find, knock and the door will open to you;
Mark 10:36
So he said, "What do you want me to do for you?"
Mark 11:24
So I tell you, whatever you pray for and ask, believe you have got it and you shall have it.
John 14:13
and I will do whatever you ask in my name, that the Father may be glorified in the Son;
John 15:16
are placed in the middle of verse 13:31] "I am the real Vine, and my Father is the vine-dresser;
James 1:5
Whoever of you is defective in wisdom, let him ask God who gives to all men without question or reproach, and the gift will be his.
1 John 5:14
Now the confidence we have in him is this, that he listens to us whenever we ask anything in accordance with his will;