Joshua 8:29

8:29 He hung the king of Ai on a tree, leaving him exposed until evening. At sunset Joshua ordered that his corpse be taken down from the tree. They threw it down at the entrance of the city gate and erected over it a large pile of stones (it remains to this very day).

Deuteronomy 21:23

21:23 his body must not remain all night on the tree; instead you must make certain you bury him that same day, for the one who is left exposed on a tree is cursed by God. You must not defile your land which the Lord your God is giving you as an inheritance.

Deuteronomy 21:2

21:2 your elders and judges must go out and measure how far it is to the cities in the vicinity of the corpse.

Deuteronomy 18:17

18:17 The Lord then said to me, “What they have said is good.