Joshua 24:19-25
24:19 Joshua warned the people, “You will not keep worshiping the Lord, for he is a holy God. He is a jealous God who will not forgive your rebellion or your sins.
24:20 If you abandon the Lord and worship foreign gods, he will turn against you; he will bring disaster on you and destroy you, though he once treated you well.”
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.