The Same Mistake on Repeat.
Hebrew (WLC) with ESV parallel
fresh.bible editorialוְאֵ֤לֶּה הַגּוֹיִם֙ אֲשֶׁ֣ר הִנִּ֣יחַ יְהוָ֔ה לְנַסּ֥וֹת בָּ֖ם אֶת־יִשְׂרָאֵ֑ל אֵ֚ת כָּל־אֲשֶׁ֣ר לֹֽא־יָדְע֔וּ אֵ֖ת כָּל־מִלְחֲמ֥וֹת כְּנָֽעַן׃
Now these are the nations that the Lord left, to test Israel by them, that is, all in Israel who had not experienced all the wars in Canaan.
רַ֗ק לְמַ֙עַן֙ דַּ֚עַת דֹּר֣וֹת בְּנֵֽי־יִשְׂרָאֵ֔ל לְלַמְּדָ֖ם מִלְחָמָ֑ה רַ֥ק אֲשֶׁר־לְפָנִ֖ים לֹ֥א יְדָעֽוּם׃
[2] It was only in order that the generations of the people of Israel might know war, to teach war to those who had not known it before.
חֲמֵ֣שֶׁת׀ סַרְנֵ֣י פְלִשְׁתִּ֗ים וְכָל־הַֽכְּנַעֲנִי֙ וְהַצִּ֣ידֹנִ֔י וְהַ֣חִוִּ֔י יֹשֵׁ֖ב הַ֣ר הַלְּבָנ֑וֹן מֵהַר֙ בַּ֣עַל חֶרְמ֔וֹן עַ֖ד לְב֥וֹא חֲמָֽת׃
[3] These are the nations: the five lords of the Philistines and all the Canaanites and the Sidonians and the Hivites who lived on Mount Lebanon, from Mount Baal-hermon as far as Lebo-hamath.
וַֽיִּהְי֕וּ לְנַסּ֥וֹת בָּ֖ם אֶת־יִשְׂרָאֵ֑ל לָדַ֗עַת הֲיִשְׁמְעוּ֙ אֶת־מִצְוֺ֣ת יְהוָ֔ה אֲשֶׁר־צִוָּ֥ה אֶת־אֲבוֹתָ֖ם בְּיַד־מֹשֶֽׁה׃
[4] They were for the testing of Israel, to know whether Israel would obey the commandments of the Lord , which he commanded their fathers by the hand of Moses.
Sources
Westminster Leningrad Codex (WLC) · English Standard Version (ESV)