Deuteronomy 29:26

And they have served foreign gods, and adored them, though they did not know them, and though they had not been allotted to them

Other versions

King James Version

For they went and served other gods, and worshipped them, gods whom they knew not, and whom he had not given unto them:

English Standard Version

and went and served other gods and worshiped them, gods whom they had not known and whom he had not allotted to them.

New International Version

They went off and worshiped other gods and bowed down to them, gods they did not know, gods he had not given them.