Deuteronomy 17:3

New American Standard Bible (NASB)
and has gone and served other gods and worshiped them, or the sun or the moon or any of the heavenly host, which I have not commanded,

Read Deuteronomy 17:3 in other translations