When one of you sees a dream that he likes, then it is from Allah
Abu Sa'id Al-Khudri (May Allah be pleased with him) reported:
I heard the Prophet (may the peace and blessings of Allah be upon him) saying, "When one of you sees a dream that he likes, then it is from Allah. He should praise Allah for it and relate it to (others)." Another narration adds: the Messenger of Allah (may the peace and blessings of Allah be upon him) said, "He should not report it except to those whom he loves. And if he sees one which he dislikes, then it is from the Satan. He should seek refuge in Allah against its evil and should not mention it to anyone. Then it will not harm him."
[Al- Bukhari and Muslim]
The dreams come from the subconscious mind, when a person sleeps deeply, or that the dream is an expression of what is going on in the mind of man during the day.
The dream is what the sleeper sees and then he does not remember all of its events when he wakes up.
If these events, which he saw, are not consecutive and there is no connection between them, then it is a mixture of false dreams.
The vision that is from Allah the Almighty gives the glad tidings or warns or interprets obsecure things or guide to what shall be done or what shall be abandoned.
Whoever saw a vision that he likes, and wishes that it will happen, he shall praise Allah a lot and considers that it is a good tiding of which Allah informed him.
It is desirable to inform those whom he loves and trust. He shall narrate this vision to the one who can interpret it.
The one who saw a disturbing vision shall do five things: to spit on his left three times, to seek refuge from Allah against the devil three times, to turn on his other side as a sign of optimism that Allah will change his situation to the best, not to inform anyone of it aspiring that it is a mixture of false dreams, and then to perform ablution and offer the prayer until he becomes sure that Allah will remove his anxiety.