Joshua 10:26-28 World English Bible (WEB)
26 Afterward Joshua struck them, put them to death, and hanged them on five trees. They were hanging on the trees until the evening. 27 At the time of the going down of the sun, Joshua commanded, and they took them down off the trees, and threw them into the cave in which they had hidden themselves, and laid great stones on the mouth of the cave, which remain to this very day.
28 Joshua took Makkedah on that day, and struck it with the edge of the sword, with its king. He utterly destroyed it and all the souls who were in it. He left no one remaining. He did to the king of Makkedah as he had done to the king of Jericho.