King James Version (KJV)
For they served idols, whereof the LORD had said unto them, Ye shall not do this thing.
Modern English
and they served idols, of which Yahweh had said to them, “You shall not do this thing.”
Hebrew
וַיַּֽעַבְד֖וּ הַגִּלֻּלִ֑ים אֲשֶׁ֨ר אָמַ֤ר יְהוָה֙ לָהֶ֔ם לֹ֥א תַעֲשׂ֖וּ אֶת־הַדָּבָ֥ר הַזֶּֽה׃
vayaʿabdv hagiluliym ʾasher ʾamar yhvah lahem loʾ taʿasv ʾet-hadabar hazeh