22Then Joshua said, “You yourselves are saying that you have decided to serve/worship Yahweh.” They replied, “Yes, we are saying that.”
23Then Joshua said, “Since you have decided that, you must throw away all the other gods/idols that you have among you. You must also promise that you will wholeheartedly give yourselves to Yahweh, the God whom we Israelis serve/worship.”
24The people replied, “We will serve/worship Yahweh, our God, and obey him.”
25That day, Joshua established an agreement between the people and Yahweh. He wrote for them all the laws that they were required to obey.