Context / meaning
Joshua 24 [19.] Joshua said to the people, “You can’t serve Yahweh, for he is a holy God. He is a jealous God. He will not forgive your disobedience nor your sins. 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.”
Joshua 24 [21.] The people said to Joshua, “No, but we will serve Yahweh.” Joshua said to the people, “You are witnesses against yourselves that you have chosen Yahweh yourselves, to serve him.”
They said, “We are witnesses.”
Joshua 24 [23.] “Now therefore put away the foreign gods which are among you, and incline your heart to Yahweh, the God of Israel.”
Joshua 24 [24.] The people said to Joshua, “We will serve Yahweh our God, and we will listen to his voice.”
Joshua 24 [25.] So Joshua made a covenant with the people that day, and made for them a statute and an ordinance in Shechem. 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. Joshua said to all the people, “Behold, this stone shall be a witness against us, for it has heard all Yahweh’s words which he spoke to us. It shall be therefore a witness against you, lest you deny your God.” So Joshua sent the people away, each to his own inheritance.