The Haunting of Hill House by Shirley Jackson:
It had found them. Since Eleanor would not open the door, it was going to make its own way in. Eleanor said aloud, “Now I know why people scream, because I think I’m going to,” and Theodora said, “I will if you will,” and laughed, so that Eleanor turned quickly back to the bed and they held each other, listening in silence. Little pattings came from around the doorframe, small seeking sounds, feeling the edges of the door, trying to sneak a way in. The doorknob was fondled, and Eleanor, whispering, asked, “Is it locked?” and Theodora nodded and then, wide-eyed, turned to stare at the connecting bathroom door. “Mine’s locked too,” Eleanor said against her ear, and Theodora closed her eyes in relief. The little sticky sounds moved on around the doorframe and then, as though a fury caught whatever was outside, the crashing came again, and Eleanor and Theodora saw the wood of the door tremble and shake, and the door move against its hinges.
“You can’t get in,” Eleanor said wildly, and again there was a silence, as though the house listened with attention to her words, understanding, cynically agreeing, content to wait. A thin little giggle came, in a breath of air through the room, a little mad rising laugh, the smallest whisper of a laugh, and Eleanor heard it all up and down her back, a little gloating laugh moving past them around the house, and then she heard the doctor and Luke calling from the stairs and, mercifully, it was over.