The Cabinet of Dr. Caligari (1920)
This German silent film is one of cinema's **earliest** twist endings: the whole story turns out to be told by a patient inside an asylum, recasting everything we just watched. The trick is nearly as old as the movies themselves.