21“No!” replied the people. “We will serve the LORD!”
22Then Joshua told them, “You are witnesses against yourselves that you have chosen to serve the LORD.” “We are witnesses!” they said.
23“Now, therefore,” he said, “get rid of the foreign gods among you and incline your hearts to the LORD, the God of Israel.”
24So the people said to Joshua, “We will serve the LORD our God and obey His voice.”
25On that day Joshua made a covenant for the people, and there at Shechem he established for them a statute and ordinance.
— Joshua 24:21-25