This is explained in the book 
Man after Death under the title of 
The dream
The interpreter of the Quran explained the categories of the dream:
1-
 The confused dreams: the result of thoughts or difficulties or some situation like heat or stomach fullness: and he will see dreams that are usually non-sense.
2-
 The spiritual dreams: the result of influence of spiritual creatures on the sleeping man: such spiritual creatures may be the devils or the angels.
   a- so if it is from devils: it is 
the false dream: usually opposite of reality, like the rich seeing himself a beggar, or the coward sees himself a hero, etc.
   b- while if it is from angels: it is 
the true dream: such true dreams are usually clear and may come in symbols: like one plunging in water: it may indicate he will fall into trouble, or he sees a funeral which is interpreted as the wedding... etc.
There are some books written about such symbols in the dream.
Like 
IbnSirin_dictionary_of_dreams.pdf
	
	
Some people are endowed with ability to interpret the true dream while others cannot.
In my dream, I thought is it false or true? Then I consulted God by the Quran, and I saw: it is from God.
Quran 40: 2, which means:
(Revealing of the Book [: the Quran, including wisdom and admonition] from God, the All-Mighty, the All-Knowing.)
	
Then I said: what it indicates, and I consulted God by the Quran: and the answer was: God destroys the wrong-doers.
There are a large number of ayat speaking about God destroying the wrong-doers, like as I remember this aya in the
 Quran 18: 59, which means:
(
Such were the cities [of ‘Aad, Thamood and others] which We destroyed when they wronged [the messengers of God and denied His revelations]; and We assigned an appointment for the time of their destruction.)