But some of these dreams may be forgotten after waking up, because people have many dreams when they sleep, and we can only remember the dreams before waking up.
So when you see some historical events again, brain memory will be triggered, resulting in deja vu and personal experience.
Another explanation is that people's sixth sense will predict some things, but these things may take a long time to come, or they will not happen until they wake up. The brain still thinks after any sleep, so these things may be the conclusions drawn by the brain after calculation.