Ultimate Adventurer's Handbook
Detect Past
3-level Divination
Ritual - does not require spell slot, takes 10 minutes longer
Casting Time: 1 action
Range/Area: Self
Components: V, S, M
Materials: a pocket watch or other timekeeping device that can be wound backward
Duration: Instantaneous
When you cast this spell, you must specify a type of event, such as a murder, a clandestine meeting, a battle, a celebration, or a tragedy, though you are not limited to only these options. You detect any such event that has happened in the past 1 hour within 30 feet of you. You can choose up to one event you detected and view it in its entirety as though you bore witness to it when it happened. The duration of the event and what you see are determined by the DM.
At higher levels: When you cast this spell using a spell slot of 4th level or higher, you can detect events that have happened further in the past, depending on the slot level: in the past 8 hours with a 4th-level slot, in the past 24 hours with a 5th, in the past 7 days with a 6th, in the past 30 days with a 7th, in the past year with an 8th, and in the past 100 years with a 9th-level slot.