Matthew 1:20

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

Matthew 2:13

And when they were gone back, behold an angel of the Lord appeareth to Joseph in a dream, saying, Arise and take the young child and his mother, and flee into Egypt, and continue there till I shall tell thee; for Herod will seek the young child to destroy him.

Matthew 2:19

But when Herod was dead, behold 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 it shall be opened to you.

Mark 10:36

And he said to them, What would ye that I should do for you?

Mark 10:38-51

But Jesus said to them, Ye know not what ye ask. Can ye drink of the cup that I drink of, and be baptized with the baptism that I am baptized with?

Mark 11:24

Therefore I say to you, What things soever ye ask in prayer, believe that ye shall receive, and ye shall have them.

John 14:13-14

And whatsoever ye shall ask in my name, I will do it, that the Father may be glorified thro' the Son.

John 15:16

Ye have not chosen me, but I have chosen you, and appointed you that ye may go and bear fruit, and your fruit may remain; that whatsoever ye shall ask of the Father in my name, he may give it you.

James 1:5-6

If any of you want wisdom, let him ask of God, who giveth to all men liberally and upbraideth not, and it shall be given him.

1 John 5:14-15

And this is the confidence which we have in him, that if we ask any thing according to his will, he heareth 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 on these things, behold an angel of the Lord appeared to him in a dream, saying, Joseph, thou son of David, fear not to take to thee Mary thy wife; for that which is begotten in her, is of the Holy Ghost.
Matthew 2:13
And when they were gone back, behold an angel of the Lord appeareth to Joseph in a dream, saying, Arise and take the young child and his mother, and flee into Egypt, and continue there till I shall tell thee; for Herod will seek the young child to destroy him.

Ask what

Matthew 7:7
Ask and it shall be given you, seek and ye shall find; knock and it shall be opened to you.
Mark 10:36
And he said to them, What would ye that I should do for you?
Mark 11:24
Therefore I say to you, What things soever ye ask in prayer, believe that ye shall receive, and ye shall have them.
John 14:13
And whatsoever ye shall ask in my name, I will do it, that the Father may be glorified thro' the Son.
John 15:16
Ye have not chosen me, but I have chosen you, and appointed you that ye may go and bear fruit, and your fruit may remain; that whatsoever ye shall ask of the Father in my name, he may give it you.
James 1:5
If any of you want wisdom, let him ask of God, who giveth to all men liberally and upbraideth not, and it shall be given him.
1 John 5:14
And this is the confidence which we have in him, that if we ask any thing according to his will, he heareth us.