Joshua 24:16-26

16 The people responded, "It would be unthinkable for us to abandon the LORD to serve other gods.
17 The LORD our God brought us and our ancestors out of slavery in Egypt. He did these spectacular signs right before our eyes. He guarded us wherever we went, especially as we passed through other nations.
18 The LORD forced out all the people ahead of us, including the Amorites who lived in this land. We, too, will serve the LORD, because he is our God."
19 But Joshua answered the people, "Since the LORD is a holy God, you can't possibly serve him. He is a God who does not tolerate rivals. He will not forgive your rebellious acts and sins.
20 If you abandon the LORD and serve foreign gods, he will turn and bring disaster on you. He will destroy you, although he has been so good to you."
21 The people answered Joshua, "No! We will [only] serve the LORD!"
22 Joshua said to the people, "You have testified that you have chosen to serve the LORD." They answered, "Yes, we have!"
23 "Get rid of the foreign gods that are among you. Turn yourselves entirely over to the LORD God of Israel."
24 The people replied to Joshua, "We will serve the LORD our God and obey him."
25 That day Joshua made an agreement for the people and set up laws and rules for them at Shechem.
26 Joshua wrote these things in the Book of God's Teachings. Then he took a large stone and set it up under the oak tree at the LORD's holy place.