Idk if he had a dream about the future or he went back to the past to and possibly that caused her to too bc he used some kinda magic in the future to redo things