Deuteronomy 21:23
His body shall not remain all night upon the tree, but thou shalt in any wise bury him that day; (for he that is hanged is accursed of God;) that thy land be not defiled, which the Lord thy God giveth thee for an inheritance.
Cross-reference
In Numbers 25:4, God commands impaling chiefs in the sun, a public display of the cursed, similar to hanging on a tree.
In 2 Samuel 21:6, the Gibeonites request to hang Saul's sons — a similar 'hanged on a tree' accursed death echoing Deut 21:23.
In John 19:31, the Jews ensure bodies are taken down before Sabbath, directly obeying the command in Deuteronomy 21:23.
Galatians 3:13 directly quotes Deut 21:23 to explain Christ becoming a curse for us on the cross.
Joshua 8:29 shows the king of Ai hanged and taken down by sunset — a direct obedience to the law in Deut 21:23.
Joshua 10:26 explicitly obeys the law by hanging five kings and taking them down before night, preventing land defilement.
Joshua 10:27 continues the same compliance: the bodies are removed from the trees at sunset, directly applying the law.
Ezekiel 39:12 describes burying corpses to cleanse the land, directly paralleling Deut 21:23’s command to avoid defilement from hanging.
1 Peter 2:24 explicitly says Jesus bore sins 'on the tree,' directly alluding to the cursed death foreshadowed in Deut 21:23.