וַיִּמְאַ֨ס יְהוָ֜ה בְּכָל־זֶ֤רַע יִשְׂרָאֵל֙ וַיְעַנֵּ֔ם וַֽיִּתְּנֵ֖ם בְּיַד־שֹׁסִ֑ים עַ֛ד אֲשֶׁ֥ר הִשְׁלִיכָ֖ם מִפָּנָֽיו׃
And the LORD rejected all the seed of Israel, and afflicted them, and delivered them into the hand of spoilers, until He had cast them out of His sight.
Read halakhic rulings (Jewish law) on II Kings 17:20: and classical halakhic sources.