Hanging criminals was common almost everywhere as criminal punishment.
The act of hanging as a criminal punishment can be recorded happening everywhere throughout history, it still occurs today in same places of the world.