"Don't scare people"
The dead are dead.
It's common sense to live and die, and it's nothing.
Your so-called "dream" can be explained by science.
Why do dreams always happen at night instead of during the day? It's either daytime or daydreaming, which has scientific basis.
At night, people's whole physiological function begins to rest, and people's subjective consciousness begins to sleep, but at this time, people's "brain" is not sleeping, and the brain is still in an excited state. It will play mind games for itself, collect a lot of memento mori from people in the brain, and then adapt the story. Finally, the dream you said is "it", which was directed by yourself.
Don't think so much, hehe.
The living should cherish the present life instead of being too silent in sadness.
I hope my answer is helpful to you.