Joshua 24:22-25 King James Version (KJV)
22 And Joshua said unto the people, Ye are witnesses against yourselves that ye have chosen you the Lord, to serve him. And they said, We are witnesses.
23 Now therefore put away, said he, the strange gods which are among you, and incline your heart unto the Lord God of Israel.
24 And the people said unto Joshua, The Lord our God will we serve, and his voice will we obey.
25 So Joshua made a covenant with the people that day, and set them a statute and an ordinance in Shechem.