Detained is a 1924 American silent comedy film starring Stan Laurel.
In "The Hanging Scene", Stan Laurel gets an extreme extended neck when he accidentally falls head first into the gallows, while trying to escape the prison.
In 2017, a Dutch employee (Jurjen Enzing, 1987) found the footage in their archive and after restoration the entire movie including the scene was uploaded to YouTube.
Stan hammers a stick of dynamite into the wall and they blow a hole into the chief warden's office.
Stan is released the next day, and he cries as he says goodbye to the head warden and the girl.