Déjà vu is the strong feeling that one has already experienced a particular situation, while that situation is occurring. Theories abound as regards what it is, what causes it and what possible connection (if any) it might have to mental illness (see here, for a small range of opinions). It may be that everybody experiences it, even if only extremely rarely, and there is no reason to suppose that it is at all a new phenomenon.
My question is, are there any references to déjà vu (to what we might now call déjà vu) in the rabbinic literature? Anything from the Talmud, the midrashim, the literature of the geonim, etc, from which one could construct a Jewish perspective on what déjà vu is? Or anything concerning whether or not it possesses any spiritual significance?