Joshua 24:18 Halakhah

וַיְגָ֨רֶשׁ יְהוָ֜ה אֶת־כָּל־הָעַמִּ֗ים וְאֶת־הָאֱמֹרִ֛י יֹשֵׁ֥ב הָאָ֖רֶץ מִפָּנֵ֑ינוּ גַּם־אֲנַ֙חְנוּ֙ נַעֲבֹ֣ד אֶת־יְהוָ֔ה כִּי־ה֖וּא אֱלֹהֵֽינוּ׃ (ס)

and the LORD drove out from before us all the peoples, even the Amorites that dwelt in the land; therefore we also will serve the LORD; for He is our God.’

Read halakhic rulings (Jewish law) on Joshua 24:18: and classical halakhic sources.