If you forsake Yahweh and serve foreign gods, he will turn and bring disaster on you and consume you, after he has been good to you.”
In context
18Yahweh drove out before us all the peoples, including the Amorites who lived in the land. We too will serve Yahweh, for he is our God.” 19Joshua said to the people, “You will not be able to serve Yahweh, for he is a holy God. He is a jealous God; he will not forgive your rebellion or your sins. 20If you forsake Yahweh and serve foreign gods, he will turn and bring disaster on you and consume you, after he has been good to you.” 21But the people said to Joshua, “No — we will serve Yahweh.” 22Joshua said to the people, “You are witnesses against yourselves that you have chosen Yahweh, to serve him.” They said, “We are witnesses.”