The Turn of the Screw by Henry James (1898) — see its film and TV adaptations.
The governess of two enigmatic children fears their souls are in danger from the ghosts of the previous governess and her sinister lover.