Joshua 24:21-25

24:21 The people said to Joshua, “No! We really will worship the Lord!” 24:22 Joshua said to the people, “Do you agree to be witnesses against yourselves that you have chosen to worship the Lord?” They replied, “We are witnesses!” 24:23 Joshua said, “Now put aside the foreign gods that are among you and submit to the Lord God of Israel.”

24:24 The people said to Joshua, “We will worship the Lord our God and obey him.”

24:25 That day Joshua drew up an agreement for the people, and he established rules and regulations for them in Shechem.