"Oh, are you doing magic? Let's see it, then."
She sat down. Ron looked taken aback.
"Er -- all right."
He cleared his throat.
"Sunshine, daisies, butter mellow, Turn this stupid, fat rat yellow."
He waved his wand, but nothing happened. Scabbers stayed gray and fast asleep.
"Are you sure that's a real spell?" said the girl. "Well, it's not very good, is it? I've tried a few simple spells just for practice and it's all worked for me. Nobody in my family's magic at all, it was ever such a surprise when I got my letter, but I was ever so pleased, of course, I mean, it's the very best school of witchcraft there is, I've heard -- I've learned all our course books by heart, of course, I just hope it will be enough -- I'm Hermione Granger, by the way, who are you."
She said all this very fast.
Harry looked at Ron, and was relieved to see by his stunned face that he hadn't learned all the course books by heart either.

Harry Potter and the Philosopher's Stone - Chapter 6 : The Journey from Platform Nine and Three-Quarters
See this quote in the Pensive -