Foreshadowing is when an author uses symbolism, an event, a small detail, or even a part of dialogue to be a warning or indication of a future event. An author might use this because they want to give the reader knowledge about a future event or to tease them.