Joshua 24:20

20 If you forsake the Lord and serve foreign gods, then he will turn and do you harm, and consume you, after having done you good."

Joshua 24:20 In-Context

18 and the Lord drove out before us all the peoples, the Amorites who lived in the land. Therefore we also will serve the Lord, for he is our God."
19 But Joshua said to the people, "You cannot serve the Lord, for he is a holy God. He is a jealous God; he will not forgive your transgressions or your sins.
20 If you forsake the Lord and serve foreign gods, then he will turn and do you harm, and consume you, after having done you good."
21 And the people said to Joshua, "No, we will serve the Lord!"
22 Then 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."
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.