A great example of foreshadowing is the scene in The Empire Strikes Back where Luke enters a cave on Degobah and has a vision of meeting Darth Vader there; Luke removes the mask of the Dark Lord, and it is his own face he sees.