16Then the people answered, “Far be it from us that we should forsake the LORD to serve other gods; 17for it is the LORD our God who brought us and our ancestors up from the land of Egypt, out of the house of slavery, and who did those great signs in our sight. He protected us along all the way that we went, and among all the peoples through whom we passed; 18and the LORD drove out before us all the peoples, the Amorites who lived in the land. Therefore we also will serve the LORD, for he is our God.”
19But Joshua said to the people, “You cannot serve the LORD, for he is a holy God. He is a jealous God; he will not forgive your transgressions or your sins. 20If you forsake the LORD and serve foreign gods, then he will turn and do you harm, and consume you, after having done you good.” 21And the people said to Joshua, “No, we will serve the LORD!” 22Then 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.” 23He said, “Then put away the foreign gods that are among you, and incline your hearts to the LORD, the God of Israel.” 24The people said to Joshua, “The LORD our God we will serve, and him we will obey.” 25So Joshua made a covenant with the people that day, and made statutes and ordinances for them at Shechem. 26Joshua 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. 27Joshua 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.” 28So Joshua sent the people away to their inheritances.
29After these things Joshua son of Nun, the servant of the LORD, died, being one hundred and ten years old. 30They buried him in his own inheritance at Timnath-serah, which is in the hill country of Ephraim, north of Mount Gaash.
31Israel served the LORD all the days of Joshua, and all the days of the elders who outlived Joshua and had known all the work that the LORD did for Israel.
32The bones of Joseph, which the Israelites had brought up from Egypt, were buried at Shechem, in the portion of ground that Jacob had bought from the children of Hamor, the father of Shechem, for one hundred pieces of money; it became an inheritance of the descendants of Joseph.
33Eleazar son of Aaron died; and they buried him at Gibeah, the town of his son Phinehas, which had been given him in the hill country of Ephraim.