1 Then Joshua assembled together all of the tribes of Israel at Shechem. He called for the leaders, officials, judges, and tribal officers of Israel. They assembled in formation before God, 2 and Joshua told all of the people, "This is what the LORD God of Israel has to say: 3 "Long ago your ancestors lived beyond the Euphrates River, including Terah, father of both Abraham and Nahor, where they served other gods. Then I took your ancestor Abraham from the other side of the Euphrates River and led him through the entire land of Canaan. I multiplied his descendants, and gave him his son Isaac. 4 I gave Jacob and Esau to Isaac. And I gave Mount Seir to Esau as his possession, but Jacob and his children went down to Egypt.
5 "Later I commissioned Moses and Aaron, and I inflicted plagues on Egypt by what I did among them. Afterwards, I brought all of you out. 6 "Then I brought your ancestors out of Egypt, and you came to the Sea, and the Egyptians followed your ancestors with chariots and horsemen to the Reed Sea. 7 But when they cried out to the LORD, he placed darkness between you and the Egyptians, brought the sea upon the Egyptians, and swallowed them up. Your own eyes saw what I did in Egypt. Then you lived in the desert for a long time.
8 "I brought you into the territory of the Amorites, who lived on the other side of the Jordan River. They fought you, but I gave them into your control, and you took possession of their land. I destroyed them from your presence. 9 "Then Zippor's son, King Balak of Moab, showed up and fought against Israel. He sent word to Balaam, summoning Beor's son to put a curse on you. 10 But I wasn't willing to listen to Balaam. So he had to bless you, and I delivered you from his control.
11 "Next, you crossed the Jordan River and arrived at Jericho. But the citizens of Jericho fought you, as did the Amorites, Perizzites, Canaanites, Hittites, Girgashites, Hivites, and the Jebusites, so I gave them into your control. 12 "Then I sent hornets ahead of you to drive out two kings of the Amorites before you without your using either sword or bow. 13 I gave you a land for which you never worked and cities that you didn't build, but that you have lived in. You're eating from vineyards and olive groves that you didn't plant.'
14 "Now you must fear the LORD and serve him in faithfulness and truth. Throw away the gods that your ancestors served beyond the Euphrates River and in Egypt. Instead, serve the LORD. 15 If you think it's the wrong thing for you to serve the LORD, then choose for yourselves today whom you will serve the gods whom your ancestors served on the other side of the Euphrates River, or the gods of the Amorites in whose territories you are living. But as for me and my household, we will serve the LORD."
16 In response, the people said, "Far be it from us that we should abandon the LORD to serve other gods, 17 since the LORD our God is the one who brought us and our ancestors up from the land of Egypt, from a life of slavery. He did those great things right in front of us, preserving us along the way that we traveled and among all the nations through whose territory we passed. 18 The LORD expelled all the people before us, including the Amorites who lived in the land. Therefore, we also will serve the LORD, since he is our God."
19 So Joshua told the people, "You will not be able to serve the LORD, because he is a God of Holiness. He is a jealous God, and he will forgive neither your transgressions nor your sins. 20 If you abandon the LORD and serve foreign deities, then he will turn and do you harm, consuming you after all the good he has done for you."
22 Joshua responded, "You are giving testimony against yourselves, that you have chosen to serve the LORD." They replied, "We are witnesses!"
23 Joshua said, "Therefore abandon the foreign gods that are among you, and turn your hearts to the LORD, the God of Israel."
25 So Joshua made a covenant with the people that day, making statutes and ordinances in Shechem. 26 He wrote these words in the Book of the Law of God, took a large stone, moved it under the shade of the oak tree that was near the sanctuary of the LORD, 27 and then told all of the people, "Look! This stone will testify for us, because it has heard everything that the LORD has spoken to us. So it will stand as a witness against you in the event that you deny your God." 28 Then Joshua dismissed the people, and each man returned to his territorial inheritance.
29 Some time later, Joshua servant of the LORD died at the age of 110 years, and 30 they buried him in his territorial inheritance at Timnath-serah in the mountainous region of Ephraim, north of Mount Gaash. 31 Israel served the LORD for the entire lifetimes of Joshua and of the officials who outlived Joshua, that is, the ones who had personally known everything that the LORD had done for Israel.
32 They also buried the bones of Joseph, which the Israelis brought up from Egypt, in the parcel of ground at Shechem that Jacob had purchased from the descendants of Shechem's father Hamor, for 100 pieces of silver. It became part of the inheritance of the descendants of Joseph.