Joshua 24:14-25 NIV
“Now fear the LORD and serve him with all faithfulness. Throw away the gods your ancestors worshiped beyond the Euphrates River and in Egypt, and serve the LORD. But if serving the LORD seems undesirable to you, then choose for yourselves this day whom you will serve, whether the gods your ancestors served beyond the Euphrates, or the gods of the Amorites, in whose land you are living. But as for me and my household, we will serve the LORD.”
Then the people answered, “Far be it from us to forsake the LORD to serve other gods! It was the LORD our God himself who brought us and our parents up out of Egypt, from that land of slavery, and performed those great signs before our eyes. He protected us on our entire journey and among all the nations through which we traveled. And the LORD drove out before us all the nations, including the Amorites, who lived in the land. We too will serve the LORD, because he is our God.”
Joshua said to the people, “You are not able to serve the LORD. He is a holy God; he is a jealous God. He will not forgive your rebellion and your sins. If you forsake the LORD and serve foreign gods, he will turn and bring disaster on you and make an end of you, after he has been good to you.”
But the people said to Joshua, “No! We will serve the LORD.”
Then Joshua said, “You are witnesses against yourselves that you have chosen to serve the LORD.”
“Yes, we are witnesses,” they replied.
“Now then,” said Joshua, “throw away the foreign gods that are among you and yield your hearts to the LORD, the God of Israel.”
And the people said to Joshua, “We will serve the LORD our God and obey him.”
On that day Joshua made a covenant for the people, and there at Shechem he reaffirmed for them decrees and laws.
NIV: New International Version