Joshua 24:18-23
English Standard Version
19But Joshua said to the people, "You are not able to serve the Lord, for he is a holy God. He is a jealous God; he will not forgive your transgressions or your sins.
20If you forsake the Lord and serve foreign gods, then he will turn and do you harm and consume you, after having done you good."
21And the people said to Joshua, "No, but we will serve the Lord."
22Then Joshua said to the people, "You are witnesses against yourselves that you have chosen the Lord, to serve him." And they said, "We are witnesses."
23He said, "Then put away the foreign gods that are among you, and incline your heart to the Lord, the God of Israel."