Foreshadowing is a literary device used to hint at plot points that may come later in a story. It‘s like a teasing wink from the author to the reader, saying “Just you wait, this is gonna be good!”
Some famous examples are a “dark and stormy night“ or a “black cat crossing your path.”