20 If you forsake Yahweh, and serve foreign gods, then he will turn and do you evil, and consume you, after he has done you good.”
21 The people said to Joshua, “No, but we will serve Yahweh.”
22 Joshua said to the people, “You are witnesses against yourselves that you have chosen Yahweh yourselves, to serve him.” They said, “We are witnesses.”
23 “Now therefore put away the foreign gods which are among you, and incline your heart to Yahweh, the God of Israel.”
24 The people said to Joshua, “We will serve Yahweh our God, and we will listen to his voice.”
25 So Joshua made a covenant with the people that day, and made for them a statute and an ordinance in Shechem.
26 Joshua wrote these words in the book of the law of God; and he took a great stone, and set it up there under the oak that was by the sanctuary of Yahweh.