Answer:
The sentence that is an example of foreshadowing is "Suddenly he felt himself whirled round and round-spinning like a top." This sentence foreshadows the twist ending of the story, where it is revealed that Farquhar's escape attempt was unsuccessful and that he was actually hanged.