Deuteronomy 17:3

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,

Deuteronomy 4:19

And beware not to lift up your eyes to heaven and see the sun and the moon and the stars, all the host of heaven, and be drawn away and worship them and serve them, those which the Lord your God has allotted to all the peoples under the whole heaven.

Job 31:26-27

If I have looked at the sun when it shone
Or the moon going in splendor,

Jeremiah 7:22-23

For I did not speak to your fathers, or command them in the day that I brought them out of the land of Egypt, concerning burnt offerings and sacrifices.

Jeremiah 7:31

They have built the high places of Topheth, which is in the valley of the son of Hinnom, to burn their sons and their daughters in the fire, which I did not command, and it did not come into My mind.

Jeremiah 19:5

and have built the high places of Baal to burn their sons in the fire as burnt offerings to Baal, a thing which I never commanded or spoke of, nor did it ever enter My mind;

Jeremiah 32:35

They built the high places of Baal that are in the valley of Ben-hinnom to cause their sons and their daughters to pass through the fire to Molech, which I had not commanded them nor had it entered My mind that they should do this abomination, to cause Judah to sin.

2 Kings 21:3

For he rebuilt the high places which Hezekiah his father had destroyed; and he erected altars for Baal and made an Asherah, as Ahab king of Israel had done, and worshiped all the host of heaven and served them.

Jeremiah 8:2

They will spread them out to the sun, the moon and to all the host of heaven, which they have loved and which they have served, and which they have gone after and which they have sought, and which they have worshiped. They will not be gathered or buried; they will be as dung on the face of the ground.

Ezekiel 8:16

Then He brought me into the inner court of the Lord’s house. And behold, at the entrance to the temple of the Lord, between the porch and the altar, were about twenty-five men with their backs to the temple of the Lord and their faces toward the east; and they were prostrating themselves eastward toward 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
And beware not to lift up your eyes to heaven and see the sun and the moon and the stars, all the host of heaven, and be drawn away and worship them and serve them, those which the Lord your God has allotted to all the peoples under the whole heaven.
2 Kings 21:3
For he rebuilt the high places which Hezekiah his father had destroyed; and he erected altars for Baal and made an Asherah, as Ahab king of Israel had done, and worshiped all the host of heaven and served them.
Job 31:26
If I have looked at the sun when it shone
Or the moon going in splendor,
Jeremiah 8:2
They will spread them out to the sun, the moon and to all the host of heaven, which they have loved and which they have served, and which they have gone after and which they have sought, and which they have worshiped. They will not be gathered or buried; they will be as dung on the face of the ground.
Ezekiel 8:16
Then He brought me into the inner court of the Lord’s house. And behold, at the entrance to the temple of the Lord, between the porch and the altar, were about twenty-five men with their backs to the temple of the Lord and their faces toward the east; and they were prostrating themselves eastward toward the sun.