Deuteronomy 17:3

and has gone to worship other gods by bowing down to the sun, moon, or all the stars in the sky—which I have forbidden—

Deuteronomy 4:19

When you look to the heavens and see the sun, moon, and stars—all the array of heaven—do not be led astray to bow down and worship them. The Lord your God has provided them for all people everywhere under heaven.

Job 31:26-27

if I have gazed at the sun when it was shining
or at the moon moving in splendor,

Jeremiah 7:22-23

for when I brought your ancestors out of the land of Egypt, I did not speak with them or command them concerning burnt offering and sacrifice.

Jeremiah 7:31

They have built the high places of Topheth in the Valley of Hinnom in order to burn their sons and daughters in the fire, a thing I did not command; I never entertained the thought.

Jeremiah 19:5

They have built high places to Baal on which to burn their children in the fire as burnt offerings to Baal, something I have never commanded or mentioned; I never entertained the thought.

Jeremiah 32:35

They have built the high places of Baal in the Valley of Hinnom to make their sons and daughters pass through the fire to Molech—something I had not commanded them. I had never entertained the thought that they do this detestable act causing Judah to sin!

2 Kings 21:3

He rebuilt the high places that his father Hezekiah had destroyed and reestablished the altars for Baal. He made an Asherah, as King Ahab of Israel had done; he also worshiped the whole heavenly host and served them.

Jeremiah 8:2

They will be exposed to the sun, the moon, and the whole heavenly host, which they have loved, served, followed, consulted, and worshiped. Their bones will not be collected and buried but will become like manure on the surface of the soil.

Ezekiel 8:16

So He brought me to the inner court of the Lord’s house, and there were about 25 men at the entrance of the Lord’s temple, between the portico and the altar, with their backs to the Lord’s temple and their faces turned to the east. They were bowing to the east in worship of the sun.

Treasury of Scripture Knowledge

Summary

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;

Bible References

The sun

Deuteronomy 4:19
When you look to the heavens and see the sun, moon, and stars—all the array of heaven—do not be led astray to bow down and worship them. The Lord your God has provided them for all people everywhere under heaven.
2 Kings 21:3
He rebuilt the high places that his father Hezekiah had destroyed and reestablished the altars for Baal. He made an Asherah, as King Ahab of Israel had done; he also worshiped the whole heavenly host and served them.
Job 31:26
if I have gazed at the sun when it was shining
or at the moon moving in splendor,
Jeremiah 8:2
They will be exposed to the sun, the moon, and the whole heavenly host, which they have loved, served, followed, consulted, and worshiped. Their bones will not be collected and buried but will become like manure on the surface of the soil.
Ezekiel 8:16
So He brought me to the inner court of the Lord’s house, and there were about 25 men at the entrance of the Lord’s temple, between the portico and the altar, with their backs to the Lord’s temple and their faces turned to the east. They were bowing to the east in worship of the sun.

Holman Christian Standard Bible®, Copyright © 1999, 2000, 2002, 2003, 2009 by Holman Bible Publishers.