Foreshadowing is giving a hint that something is going to happen by showing certain events, people or information that are an indication of something that will occur later on in the story.
— Read on examples.yourdictionary.com/foreshadowing-examples.html