When you went over the Jordan and came to Jericho, the citizens of Jericho fought against you, and also the Amorites, the Perizzites, the Canaanites, the Hittites, the Girgashites, the Hivites, and the Jebusites; and I handed them over to you.
I sent the hornet ahead of you, which drove out before you the two kings of the Amorites; it was not by your sword or by your bow.
References for Joshua 24:12
I gave you a land on which you had not labored, and towns that you had not built, and you live in them; you eat the fruit of vineyards and oliveyards that you did not plant.
"Now therefore revere the Lord, and serve him in sincerity and in faithfulness; put away the gods that your ancestors served beyond the River and in Egypt, and serve the Lord.
Now if you are unwilling to serve the Lord, choose this day whom you will serve, whether the gods your ancestors served in the region beyond the River or the gods of the Amorites in whose land you are living; but as for me and my household, we will serve the Lord."
Then the people answered, "Far be it from us that we should forsake the Lord to serve other gods;
for it is the Lord our God who brought us and our ancestors up from the land of Egypt, out of the house of slavery, and who did those great signs in our sight. He protected us along all the way that we went, and among all the peoples through whom we passed;
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."
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.
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."
And the people said to Joshua, "No, we will serve the Lord!"