A clear foreshadowing example in "The Adventure of the Speckled Band" is the description of Dr. Roylott's "peculiar shrill, piercing scream" when agitated.
This scream is mentioned repeatedly—first when Holmes/Watson meet Dr. Roylott, again when Helen Stoner describes events before her sister's death. This repetition foreshadows its crucial climactic role, where it warns Helen and provides Holmes a vital clue.
The scream becomes associated with danger/violence, ultimately leading Holmes to deduce it's not mere anger but a signal to the deadly "speckled band"—the snake.
This foreshadowing creates suspense and lets readers anticipate the scream's role in unfolding events.