They were there to test Israel, to see whether they would obey the commandments the LORD had given their ancestors through Moses.
וַֽיִּהְי֕וּ לְנַסּ֥וֹת בָּ֖ם אֶת־ יִשְׂרָאֵ֑ל לָדַ֗עַת הֲיִשְׁמְעוּ֙ אֶת־ מִצְוֺ֣ת יְהוָ֔ה אֲשֶׁר־ צִוָּ֥ה אֶת־ אֲבוֹתָ֖ם בְּיַד־ מֹשֶֽׁה׃
way·yih·yū lə·nas·sō·wṯ bām ’eṯ- yiś·rā·’êl lā·ḏa·‘aṯ hă·yiš·mə·‘ū ’eṯ- miṣ·wōṯ Yah·weh ’ă·šer- ṣiw·wāh ’eṯ- ’ă·ḇō·w·ṯām bə·yaḏ- mō·šeh