If you forsake the Lord and serve foreign gods, then he will turn and do you harm, and consume you, after having done you good."
And the people said to Joshua, "No, we will serve the Lord!"
Then Joshua said to the people, "You are witnesses against yourselves that you have chosen the Lord, to serve him." And they said, "We are witnesses."
He said, "Then put away the foreign gods that are among you, and incline your hearts to the Lord, the God of Israel."
The people said to Joshua, "The Lord our God we will serve, and him we will obey."
So Joshua made a covenant with the people that day, and made statutes and ordinances for them at Shechem.
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 in the sanctuary of the Lord.
Joshua said to all the people, "See, this stone shall be a witness against us; for it has heard all the words of the Lord that he spoke to us; therefore it shall be a witness against you, if you deal falsely with your God."
So Joshua sent the people away to their inheritances.
After these things Joshua son of Nun, the servant of the Lord, died, being one hundred ten years old.
They buried him in his own inheritance at Timnath-serah, which is in the hill country of Ephraim, north of Mount Gaash.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (New Revised Standard Bible Version Online)