"Granger, Hermione!"
Hermione almost ran to the stool and jammed the hat eagerly on her head.
"GRYFFINDOR!" shouted the hat. Ron groaned.

Harry Potter and the Philosopher's Stone - Chapter 7 : The Sorting Hat
See this quote in the Pensive -