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).

Joshua 10:26

10:26 Then Joshua executed them and hung them on five trees. They were left hanging on the trees until evening.