Joshua 10:26-28 Common English Bible (CEB)
26 Next, Joshua struck them down. He put them to death and then hanged them on five trees. They were hanging on the trees until evening. 27 At sundown, Joshua gave an order, and they took them down from the trees. They threw them into the cave where they had hidden themselves, and they set large stones over the mouth of the cave. The stones are still there to this very day.
Victories in the south
28 On that day, Joshua captured Makkedah. With a sword, he struck it and its king without mercy. He wiped them out, treating everyone in the city as something reserved for God. He left no survivors. He did to the king of Makkedah exactly as he had done to the king of Jericho.