Foreshadowing
From Conservapedia
Foreshadowing is the use in literature of saying something that will happen before it actually will happen, and the characters are not knowledgeable of this but the reader is. See Typology.