Seeing the Dead
Question :
Does it signify that one's death is near when one sees dead people in dreams? What should a person do to rid himself of these dreams?
Answer:
These dreams and others that frighten the believer are from the Shaytan, for the Shaytan is diligent in trying to bring sadness and terror into the heart of every Muslim. Allah Almighty said:
"Secret counsels (conspiracies) are only from Shaytan, in order that he may cause grief to the believers. But he cannot harm them in the least, except as Allah permits."
And that is why the Messenger of Allah ordered the Muslim to spit three times to his left after he sees a bad dream.
Then he may say three times:
"I seek refuge in Allah from the Shaytan and from the evil I saw."
Then he should go back to sleep on the side opposite of that he was sleeping on, and not to inform anybody of what he saw.
When you see a bad dream, go back to sleep if you please, but sleep on the opposite side you were sleeping on. If you apply what is mentioned above, if you don't tell anybody about yourbbad dream, then you will not be harmed by it.
Therefore, if someone has a dream about death, this does not prove that he is about to die; rather, it is from the Shaytan who wishes to instill sadness and fear in him, so let him seek refuge in Allah from him and not inform anyone about it.
Source:
Ibn 'Uthaimin
Fatawa Islamiyah, Vol. 8 Pages 133-134