giving or serving as an indication or warning of something that is to come;
e.g. All of these remarks are foreshadowing the climax of the novel.
(noun)
some communication, in words and/or gestures, that indicates or warns of future events, especially when this is used in media such as literature or film;
e.g. Many books contain foreshadowing of their endings throughout.