One example of Twain's use of foreshadowing can be found in Huck’s conversation with the Widow about heaven and hell. This conversation foreshadows Huck's decision to risk hell in order to help a friend..... specifically Jim.
The Adventures of Huckleberry Finn