Deuteronomy 17:3

and going to worship other gods, bowing down to them or to the sun or moon or any of the host of heaven—which I have forbidden—

Berean Standard Bible
Other translations

King James Version

And hath gone and served other gods, and worshipped them, either the sun, or moon, or any of the host of heaven, which I have not commanded;

World English Bible

and has gone and served other gods and worshiped them, or the sun, or the moon, or any of the stars of the sky, which I have not commanded,

American Standard Version

and hath gone and served other gods, and worshipped them, or the sun, or the moon, or any of the host of heaven, which I have not commanded,

Geneva Bible 1599

And hath gone and serued other gods, and worshipped them: as the sunne, or the moone, or any of the hoste of heauen, which I haue not commanded,

Darby Translation

and goeth and serveth other gods, and boweth down to them, either to the sun or to the moon, or to the whole host of heaven, which I have not commanded;

Young's Literal Translation

and he doth go and serve other gods, and doth bow himself to them, and to the sun, or to the moon, or to any of the host of the heavens, which I have not commanded —

Bible in Basic English

By becoming a servant of other gods and worshipping them or the sun or the moon or all the stars of heaven, against my orders;

In context

2If a man or woman among you in one of the towns that the LORD your God gives you is found doing evil in the sight of the LORD your God by transgressing His covenant

4and if it is reported and you hear about it, you must investigate it thoroughly. If the report is true and such an abomination has happened in Israel,

Read Deuteronomy 17