ESV: and they served idols, of which the Lord had said to them, "You shall not do this."
NIV: They worshiped idols, though the Lord had said, "You shall not do this."
NASB: They served idols, concerning which the Lord had said to them, 'You shall not do this thing.'
CSB: They served idols, although the Lord had told them, "You must not do this."
NLT: Yes, they worshiped idols, despite the Lord’s specific and repeated warnings.
KJV: For they served idols, whereof the Lord had said unto them, Ye shall not do this thing.
NKJV: for they served idols, of which the Lord had said to them, “You shall not do this thing.”