Deuteronomy 17:3

Some worship and bow down to other gods, the sun, the moon, or the whole army of heaven. I have forbidden this.

Deuteronomy 4:19

Do not be tempted to bow down and worship the sun or moon or stars (the host or army of the heavens). Jehovah put them there a heritage for all the people under the heavens.

Job 31:26-27

if I have looked at the sun when it shone, or the moon moving 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. I did not command this. I would never think of such a thing. (It would not come from my heart.)

Jeremiah 19:5

They have built the high places of Baal to burn their sons in the fire as burnt offerings to Baal. This is not something I commanded or spoke of, nor did it ever enter my mind (heart) (conscience).'

Jeremiah 32:35

In the valley of Ben Hinnom they built worship sites for Baal to sacrifice their sons and daughters to Molech. I did not ask them to do this. It never entered my heart (mind). I did not make Judah sin.'

2 Kings 21:3

He built the high places that Hezekiah his father destroyed. He made altars for Baal. Then he made an Asherah as Ahab, king of Israel, had done. Manasseh was a worshipper and servant of all the stars of heaven.

Jeremiah 8:2

They will be spread out and exposed to the sun, the moon, and all the stars in the sky. These are the things that they had loved, served, gone after, sought, and worshiped. Their bones will not be gathered or buried, but they will become manure on the ground.

Ezekiel 8:16

So he took me to the inner courtyard of the Temple. There near the entrance of the sanctuary, between the altar and the porch, were about twenty-five men. They turned their backs to the sanctuary and were bowing low toward the east, worshiping the rising 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
Do not be tempted to bow down and worship the sun or moon or stars (the host or army of the heavens). Jehovah put them there a heritage for all the people under the heavens.
2 Kings 21:3
He built the high places that Hezekiah his father destroyed. He made altars for Baal. Then he made an Asherah as Ahab, king of Israel, had done. Manasseh was a worshipper and servant of all the stars of heaven.
Job 31:26
if I have looked at the sun when it shone, or the moon moving in splendor,
Jeremiah 8:2
They will be spread out and exposed to the sun, the moon, and all the stars in the sky. These are the things that they had loved, served, gone after, sought, and worshiped. Their bones will not be gathered or buried, but they will become manure on the ground.
Ezekiel 8:16
So he took me to the inner courtyard of the Temple. There near the entrance of the sanctuary, between the altar and the porch, were about twenty-five men. They turned their backs to the sanctuary and were bowing low toward the east, worshiping the rising sun.