Joshua 23:6-13; 24:14-18
6 “Be very strong; be careful to obey all that is written in the Book of the Law of Moses, without turning aside to the right or to the left. 7 Do not associate with these nations that remain among you; do not invoke the names of their gods or swear by them. You must not serve them or bow down to them. 8 But you are to hold fast to the Lord your God, as you have until now.
9 “The Lord has driven out before you great and powerful nations; to this day no one has been able to withstand you. 10 One of you routs a thousand, because the Lord your God fights for you, just as he promised. 11 So be very careful to love the Lord your God.
12 “But if you turn away and ally yourselves with the survivors of these nations that remain among you and if you intermarry with them and associate with them, 13 then you may be sure that the Lord your God will no longer drive out these nations before you. Instead, they will become snares and traps for you, whips on your backs and thorns in your eyes, until you perish from this good land, which the Lord your God has given you.
24:14 “Now fear the Lord and serve him with all faithfulness. Throw away the gods your ancestors worshiped beyond the Euphrates River and in Egypt, and serve the Lord. 15 But if serving the Lord seems undesirable to you, then choose for yourselves this day whom you will serve, whether the gods your ancestors served beyond the Euphrates, or the gods of the Amorites, in whose land you are living. But as for me and my household, we will serve the Lord.”
16 Then the people answered, “Far be it from us to forsake the Lord to serve other gods! 17 It was the Lord our God himself who brought us and our parents up out of Egypt, from that land of slavery, and performed those great signs before our eyes. He protected us on our entire journey and among all the nations through which we traveled. 18 And the Lord drove out before us all the nations, including the Amorites, who lived in the land. We too will serve the Lord, because he is our God.”