Ginny Weasley and the Creevey brothers were caught trying to steal the Sword of Gryffindor from the Headmaster's office. They were given detention with Hagrid, and Hermione laughed at their stupidity in thinking they could steal from Professor Snape. He had sent it to Gringotts for safekeeping.