J.k. Rowling said this quote

Directly above them, framed in the doorway from the Brain Room, stood Albus Dumbledore, his wand aloft, his face white and furious. Harry felt a kind of electric charge surge through every particle of his body - they were saved.