The Spanish Prisoner is a confidence trick originating by at least the early 19th century, as Eugène François Vidocq described in his memoirs.[1][2]