"Follow me," said Filch, lighting a lamp and leading them outside.
I bet you'll think twice about breaking a school rule again, won't you, eh?" he said, leering at them. "Oh yes... hard work and pain are the best teachers if you ask me... It's just a pity they let the old punishments die out... hang you by your wrists from the ceiling for a few days, I've got the chains still in my office, keep 'em well oiled in case they're ever needed.... Right, off we go, and don't think of running off, now, it'll be worse for you if you do."
Filch to Harry, Hermione, Neville and Draco

Harry Potter and the Philosopher's Stone - Chapter 15 : The Forbidden Forest
See this quote in the Pensive -