And if a man has committed a crime punishable by death, and he is put to death, and you hang him on the tree, but you shall bury him the same day, for a hanged man is accused by God; you shall not defile your land which the Lord your God gives you for an inheritance.
Context: As this quotation demonstrates, capital punishment was approved in the Old Testament for criminals and hanging was a Biblically sanctioned method of execution.
Book of Deuteronomy, Old Testament, Chapter 1, Verse 22–23
Sourced by: Eigen's Political and Historical Quotations