Joshua 24:20

20 If you forsake Yahweh, and serve foreign gods, then he will turn and do you evil, and consume you, after that he has done you good.

Joshua 24:20 In-Context

18 and Yahweh drove out from before us all the peoples, even the Amorites who lived in the land: therefore we also will serve Yahweh; for he is our God.
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.
20 If you forsake Yahweh, and serve foreign gods, then he will turn and do you evil, and consume you, after that he has done you good.
21 The people said to Joshua, No; but we will serve Yahweh.
22 Joshua said to the people, You are witnesses against yourselves that you have chosen you Yahweh, to serve him. They said, We are witnesses.
The World English Bible is in the public domain.