Deuteronomy 21:22

New American Standard Bible (NASB)
“If a man has committed a sin worthy of death and he is put to death, and you hang him on a tree,

Read Deuteronomy 21:22 in other translations