you must inquire carefully into the matter and investigate it thoroughly. If you find that it is true and an established fact that this abomination has been committed in your midst,
and when the Lord, your God, gives them over to you and you defeat them, you shall put them under the ban. Make no covenant with them and do not be gracious to them.
The city and everything in it is under the ban. Only Rahab the prostitute and all who are in the house with her are to live, because she hid the messengers we sent.
On that occasion Joshua imposed the oath: Cursed before the Lord be the man who attempts to rebuild this city, Jericho. At the cost of his firstborn will he lay its foundation, and at the cost of his youngest son will he set up its gates.
and made this vow: “O Lord of hosts, if you look with pity on the hardship of your servant, if you remember me and do not forget me, if you give your handmaid a male child, I will give him to the Lord all the days of his life. No razor shall ever touch his head.”