"Haven't we met somewhere before?" asked the student.
Like master, like disciple.
A teacher should never make fun of a pupil who makes a mistake.