19 But Joshua said to the people, “You will not be able to worship Adonai, for He is a holy God. He is a jealous God. He will not pardon your transgression and your sins.
20 If you forsake Adonai and worship foreign gods, then He will turn and do you harm and consume you, after He has done good to you.”
21 But the people said to Joshua, “No! For we will worship Adonai.”
22 So Joshua said to the people, “You are witnesses to yourselves that you have chosen for yourselves Adonai, to worship Him.” “We are witnesses,” they responded.
23 “Now therefore, get rid of the foreign gods that are in your midst, and incline your hearts to Adonai, God of Israel.”
24 And the people said to Joshua, “We will worship none but Adonai our God, and we will obey none but His voice.”
25 So Joshua cut a covenant with the people that day, and set for them a statute and an ordinance in Shechem.