In the Name of Allaah, the Entirely Merciful, the Especially Merciful.
Man has a conscious and an unconscious mind.
When we dream we tend to connect to the unconscious mind.
Allaah (Azza Wajal) says: "It is He who takes your souls by night (when you are asleep), and has knowledge of all that you have done by the day..." Surah Al-An'am Q6:60
Here Allaah has likened our sleep to death.....
Amazing, how Qur'an addresses men of intellect!
We dream while asleep and in our dreams we see succession of images, ideas and sensations beyond our control.
Sometimes in our dreams we find ourselves in lofty positions, meeting people we've never seen before in an atmosphere of tranquility, happiness that we dread ever waking up. The alarm will just be public enemy number one if it snoozes.
Some other times we see in our dreams, scary events, fearful moments, dangerous creatures and great threat to our lives that we keep screaming but even those closest to us in our rooms cannot rescue us from the terror and we sigh the moment we wake up. The alarm will just be the greatest rescuer if it snoozes.
The gist is: just as we die while asleep and experience different dreams, sometimes very interesting ones that we never want to wake up from our sleep and some other times extremely scary ones that we recognize the Greatness of Allaah the moment we wake up so will we die the real death and be stationed in Barzakh (the barrier between this world and the Hereafter: Grave) to experience the same thing.
The Hadith of Al-Bara' bin Azib (RA) recorded in the Musnad of Imam Ahmad, Sunan of Abu Dawud and others which was authenticated by al-Albani in Sahih ul-Jami' no 1676 tells us what the condition of the believers as well as the disbelievers will be in the Grave.
Those who believed in Allaah and feared Allaah and kept their duties to Him will experience greatness loftiness in their Graves and they will wish to be in that state if not for the greater abode of Jannah.
As for those who disbelieved in Allaah and disobeyed Allaah and were unmindful of their duties to Allaah, they will experience great horror and scary moments in the Grave and they will shout their last bit out but none will hear their screaming except Jinns and Animals nor will they have anyone to come to their rescue.
They will be in a horrible and sorry state and the worst is yet to come and that's the greater horror of the Day of Judgment and the severe punishment of Hellfire.
Most of our dreams come as a result of our activities and thoughts during the day, hence good activities and good thoughts beget good dreams (at least) while bad activities or experiences and thoughts beget nightmares.
If we can experience either good or horrible moments in our dreams which is likened to death then experiencing either of the two in our Graves after we breath our last is more certain.
Choose what you want to see in your dreams and by extension in your GRAVE.
May Allaah expose us to the reality of what has been written.