How did God use dreams and visions in the Bible?

This article has been translated into the following languages:

عربى Español Polski Português සිංහල