Flashforward moments
Déjà vu seems to match what you describe.
There are various possible explanations though they are a bit difficult to test since you can't readily activate the feeling in a lab setting. One of them is the idea that in the process of encoding a memory of the event it is simultaneously and erroneously &quot;recalled&quot;.