Dreams and visions are a way God has spoken to His people in the
past.
Genesis 46:2 - Jacob
Ezekiel 8:3 - Ezekiel
God gave Daniel ability to interpret visions of the King
Nebuchadnezzar Daniel 1:17 & 2:17-19
Acts 2:17 mentions visions and dreams as being from God through
His Spirit.
Visions and dreams can also be deceiving Jeremiah 23:16
therefore every vision should be carefully examined against the
word of God.