“Now, therefore, fear the LORD and serve Him in sincerity and truth; and put away the gods which your fathers served beyond the River and in Egypt, and serve the LORD. If it is disagreeable in your sight to serve the LORD, choose for yourselves today whom you will serve: whether the gods which your fathers served which were beyond the River, or the gods of the Amorites in whose land you are living; but as for me and my house, we will serve the LORD.”
The people answered and said, “Far be it from us that we should forsake the LORD to serve other gods; for the LORD our God is He who brought us and our fathers up out of the land of Egypt, from the house of bondage, and who did these great signs in our sight and preserved us through all the way in which we went and among all the peoples through whose midst we passed. The LORD drove out from before us all the peoples, even the Amorites who lived in the land. We also will serve the LORD, for He is our God.”
Then Joshua said to the people, “You will not be able to serve the LORD, for He is a holy God. He is a jealous God; He will not forgive your transgression or your sins. If you forsake the LORD and serve foreign gods, then He will turn and do you harm and consume you after He has done good to you.” The people said to Joshua, “No, but we will serve the LORD.” Joshua said to the people, “You are witnesses against yourselves that you have chosen for yourselves the LORD, to serve Him.” And they said, “We are witnesses.” “Now therefore, put away the foreign gods which are in your midst, and incline your hearts to the LORD, the God of Israel.” The people said to Joshua, “We will serve the LORD our God and we will obey His voice.” So Joshua made a covenant with the people that day, and made for them a statute and an ordinance in Shechem. And Joshua wrote these words in the book of the law of God; and he took a large stone and set it up there under the oak that was by the sanctuary of the LORD. Joshua said to all the people, “Behold, this stone shall be for a witness against us, for it has heard all the words of the LORD which He spoke to us; thus it shall be for a witness against you, so that you do not deny your God.” Then Joshua dismissed the people, each to his inheritance.
Joshua 24:14-28