King James Version (KJV)
And they put away the strange gods from among them, and served the LORD: and his soul was grieved for the misery of Israel. {strange...: Heb. gods of strangers} {grieved: Heb. shortened}
Modern English
They put away the foreign gods from among them, and served Yahweh; and his soul was grieved for the misery of Israel.
Hebrew
וַיָּסִ֜ירוּ אֶת־אֱלֹהֵ֤י הַנֵּכָר֙ מִקִּרְבָּ֔ם וַיַּעַבְד֖וּ אֶת־יְהוָ֑ה וַתִּקְצַ֥ר נַפְשׁ֖וֹ בַּעֲמַ֥ל יִשְׂרָאֵֽל׃
vayasiyrv ʾet-ʾelohey hanekar miqirbam vayaʿabdv ʾet-yhvah vatiqṣar napshvo baʿamal yishraʾel