Matthew 1:20

but while he was revolving this in his mind, an angel of the Lord appeared to him in a dream, saying, Joseph, the off-spring of David, don't make any difficulty of taking Mary for thy wife: for her pregnancy is from the holy Spirit.

Matthew 2:13

When they were gone, an angel of the Lord appeareth to Joseph in a dream, saying, Arise, take the infant and his mother, flee into Egypt, and don't stir thence till I order you, for Herod will endeavour to have the child destroy'd. Joseph therefore arose,

Matthew 2:19

But after the death of Herod, an angel of the Lord appeareth in a dream to Joseph in Egypt,

Matthew 7:7-8

Ask, and it shall be given you: seek, and ye shall find: knock, and the door shall be opened.

Mark 10:36

what, said he, would you have me do for you?

Mark 10:38-51

but Jesus said to them, you know not what you ask. can you drink the cup, that I must drink, and be baptized with the baptism with which I must be baptized?

Mark 11:24

therefore whenever you pray, be fully persuaded of obtaining your request, and I assure you it shall be granted, whatever it be.

John 14:13-14

and if in my name ye shall ask any thing of the father, whereby he may be glorified by the son, I will effect it.

John 15:16

it was not you that chose me, but I that chose you, and establish'd you, that your travels may be fruitful, and your fruit be lasting: so that whatever ye shall ask of the father for my sake, he will give it you.

James 1:5-6

If any of you is deficient in prudence, let him ask it of God, who liberally gives to all without upbraiding: and he will give it.

1 John 5:14-15

Besides, we have this confidence in him, that if we ask any thing according to his will, he will hear 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 revolving this in his mind, an angel of the Lord appeared to him in a dream, saying, Joseph, the off-spring of David, don't make any difficulty of taking Mary for thy wife: for her pregnancy is from the holy Spirit.
Matthew 2:13
When they were gone, an angel of the Lord appeareth to Joseph in a dream, saying, Arise, take the infant and his mother, flee into Egypt, and don't stir thence till I order you, for Herod will endeavour to have the child destroy'd. Joseph therefore arose,

Ask what

Matthew 7:7
Ask, and it shall be given you: seek, and ye shall find: knock, and the door shall be opened.
Mark 10:36
what, said he, would you have me do for you?
Mark 11:24
therefore whenever you pray, be fully persuaded of obtaining your request, and I assure you it shall be granted, whatever it be.
John 14:13
and if in my name ye shall ask any thing of the father, whereby he may be glorified by the son, I will effect it.
John 15:16
it was not you that chose me, but I that chose you, and establish'd you, that your travels may be fruitful, and your fruit be lasting: so that whatever ye shall ask of the father for my sake, he will give it you.
James 1:5
If any of you is deficient in prudence, let him ask it of God, who liberally gives to all without upbraiding: and he will give it.
1 John 5:14
Besides, we have this confidence in him, that if we ask any thing according to his will, he will hear us.