Joshua 24:1-2 New Revised Standard Version (NRSV)
The Tribes Renew the Covenant
24 Then Joshua gathered all the tribes of Israel to Shechem, and summoned the elders, the heads, the judges, and the officers of Israel; and they presented themselves before God. 2 And Joshua said to all the people, “Thus says the Lord, the God of Israel: Long ago your ancestors—Terah and his sons Abraham and Nahor—lived beyond the Euphrates and served other gods.
Joshua 24:14-18 New Revised Standard Version (NRSV)
14 “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. 15 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.”
16 Then the people answered, “Far be it from us that we should forsake the Lord to serve other gods; 17 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; 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.”