It was Lupin who found her screaming bloody murder and thrashing in her sleep in the middle of the night. He held her as she cried and made her some tea. He then got her a vial of dreamless sleep potion and put her to bed once again. Hermione would not wake till late evening the next day to find out that Harry had finally arrived.