Deuteronomy 17:3

Amplified Bible (AMP)
and has gone and served other gods and worshiped them, or the sun or the moon or any of the heavenly host, [doing these things] which I have commanded not to do,

Read Deuteronomy 17:3 in other translations