A common theory is that the idiom refers to hanging, either as a method of execution or suicide. However, the actual origin of the idiom is a matter of dispute.
One common belief connects the idiom to hanging, whether it be used as an act of execution or self-harm. Nevertheless, the actual source of this idiom remains disputed.