Strung Up

Does anyone know the origin of this phrase?

Someone is "strung up" before hanging. What's the sentence?

In that case, the sentence is execution.