Deuteronomy 4:19

And when you look up to the sky and behold the sun and the moon and the stars, the whole heavenly host, you must not be lured into bowing down to them or serving them. These the Lord your G-d allotted to other peoples everywhere under heaven.
-Deuteronomy 4:19
JPS translation

See also the Seven Noahide Laws.