foreshadowing

Foreshadowing is a literary device utilized to give a hint or indication of a future event in the story. Foreshadowing can be an effective tool for developing curiosity, suspense, and even narrative harmony at the end of a film or novel.