17for it is Yahweh our God who brought us and our ancestors up from the land of Egypt, out of the house of slavery, and who did those great signs in our sight, and who preserved us in all the way that we went, and among all the nations through whom we passed.
18Then Yahweh drove out before us all the peoples, including the Amorites who lived in the land. So we too will worship Yahweh, for he is our God.”
19But Joshua said to the people, “You cannot serve Yahweh, for he is a holy God; he is a jealous God; he will not forgive your transgressions and sins.
20If you forsake Yahweh and worship foreign gods, then he will turn and do you harm. He will consume you, after he has done good to you.”
21But the people said to Joshua, “No, we will worship Yahweh.”
22Then Joshua said to the people, “You are witnesses against yourselves that you have chosen for yourselves Yahweh, to worship him.” They said, “We are witnesses.”
23“Now put away the foreign gods that are with you, and turn your heart to Yahweh, the God of Israel.”