Deuteronomy 4:19

and lest you lift up your eyes to the sky, and when you see the sun and the moon and the stars, even all the host of heaven, you are drawn away and worship them, and serve them, which the LORD your God has allotted to all the peoples under the whole sky.

Deuteronomy 17:3

and has gone and served other gods, and worshiped them, or the sun, or the moon, or any of the host of heaven, which I have not commanded;

2 Kings 17:16

They forsook all the commandments of the LORD their God, and made them molten images, even two calves, and made an Asherah, and worshiped all the host of heaven, and served Baal.

2 Kings 21:3

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

Genesis 2:1

The heavens and the earth were finished, and all their vast array.

Romans 1:25

who exchanged the truth of God for a lie, and worshiped and served the creature rather than the Creator, who is blessed forever. Amen.

Genesis 1:16-18

God made the two great lights: the greater light to rule the day, and the lesser light to rule the night. He also made the stars.

Joshua 10:12-13

Then Joshua spoke to the LORD in the day when the LORD delivered up the Amorites before the children of Israel; and he said in the sight of Israel, "Sun, stand still on Gibeon. You, moon, stop in the valley of Aijalon."

2 Kings 23:4-5

The king commanded Hilkiah the high priest, and the priests of the second order, and the keepers of the threshold, to bring forth out of the LORD's temple all the vessels that were made for Baal, and for the Asherah, and for all the host of heaven, and he burned them outside of Jerusalem in the fields of the Kidron, and carried their ashes to Bethel.

2 Kings 23:11

He took away the horses that the kings of Judah had given to the sun, at the entrance of the house of the LORD, by the room of Nathan Melech the officer, who was in the court; and he burned the chariots of the sun with fire.

Nehemiah 9:6

You are the LORD, even you alone. You have made heaven, the heaven of heavens, with all their army, the earth and all things that are on it, the seas and all that is in them, and you preserve them all. The army of heaven worships you.

Job 31:26-28

if I have seen the sun when it shined, or the moon moving in splendor,

Psalm 74:16-17

The day is yours, the night is also yours. You have prepared the light and the sun.

Psalm 136:7-9

To him who made the great lights; for his loving kindness endures forever:

Psalm 148:3-5

Praise him, sun and moon. Praise him, all you shining stars.

Jeremiah 8:2

and they shall spread them before the sun, and the moon, and all the host of heaven, which they have loved, and which they have served, and after which they have walked, and which they have sought, and which they have worshiped: they shall not be gathered, nor be buried, they shall be for dung on the surface of the earth.

Jeremiah 19:13

and the houses of Jerusalem, and the houses of the kings of Judah, which are defiled, shall be as the place of Topheth, even all the houses on whose roofs they have burned incense to all the host of heaven, and have poured out drink offerings to other gods."'"

Jeremiah 31:35

Thus says the LORD, who gives the sun for a light by day, and the ordinances of the moon and of the stars for a light by night, who stirs up the sea, so that its waves roar; the LORD of hosts is his name:

Jeremiah 33:25

Thus says the LORD: 'If my covenant of day and night fails, if I have not appointed the ordinances of heaven and earth;

Ezekiel 8:16

He brought me into the inner court of the LORD's house; and see, at the door of the LORD's temple, between the porch and the altar, were about twenty-five men, with their backs toward the LORD's temple, and their faces toward the east; and they were worshipping the sun toward the east.

Amos 5:25-26

"Did you bring to me sacrifices and offerings in the wilderness forty years, house of Israel?

Zephaniah 1:5

those who worship the host of heaven on the housetops, those who worship and swear by the LORD and also swear by Malcam,

Matthew 5:45

that you may be children of your Father who is in heaven. For he makes his sun to rise on the evil and the good, and sends rain on the just and the unjust.

Acts 7:42

But God turned, and abandoned them to serve the hosts of heaven, as it is written in the book of the prophets, 'Did you offer to me slain animals and sacrifices forty years in the wilderness, O house of Israel?

Treasury of Scripture Knowledge

Summary

And lest thou lift up thine eyes unto heaven, and when thou seest the sun, and the moon, and the stars, even all the host of heaven, shouldest be driven to worship them, and serve them, which the LORD thy God hath divided unto all nations under the whole heaven.

Bible References

When thou

Deuteronomy 17:3
and has gone and served other gods, and worshiped them, or the sun, or the moon, or any of the host of heaven, which I have not commanded;
2 Kings 23:4
The king commanded Hilkiah the high priest, and the priests of the second order, and the keepers of the threshold, to bring forth out of the LORD's temple all the vessels that were made for Baal, and for the Asherah, and for all the host of heaven, and he burned them outside of Jerusalem in the fields of the Kidron, and carried their ashes to Bethel.
Job 31:26
if I have seen the sun when it shined, or the moon moving in splendor,
Jeremiah 8:2
and they shall spread them before the sun, and the moon, and all the host of heaven, which they have loved, and which they have served, and after which they have walked, and which they have sought, and which they have worshiped: they shall not be gathered, nor be buried, they shall be for dung on the surface of the earth.
Ezekiel 8:16
He brought me into the inner court of the LORD's house; and see, at the door of the LORD's temple, between the porch and the altar, were about twenty-five men, with their backs toward the LORD's temple, and their faces toward the east; and they were worshipping the sun toward the east.
Amos 5:25
"Did you bring to me sacrifices and offerings in the wilderness forty years, house of Israel?

Which the lord

Genesis 1:16
God made the two great lights: the greater light to rule the day, and the lesser light to rule the night. He also made the stars.
Joshua 10:12
Then Joshua spoke to the LORD in the day when the LORD delivered up the Amorites before the children of Israel; and he said in the sight of Israel, "Sun, stand still on Gibeon. You, moon, stop in the valley of Aijalon."
Nehemiah 9:6
You are the LORD, even you alone. You have made heaven, the heaven of heavens, with all their army, the earth and all things that are on it, the seas and all that is in them, and you preserve them all. The army of heaven worships you.
Psalm 74:16
The day is yours, the night is also yours. You have prepared the light and the sun.
Psalm 136:7
To him who made the great lights; for his loving kindness endures forever:
Psalm 148:3
Praise him, sun and moon. Praise him, all you shining stars.
Jeremiah 31:35
Thus says the LORD, who gives the sun for a light by day, and the ordinances of the moon and of the stars for a light by night, who stirs up the sea, so that its waves roar; the LORD of hosts is his name:
Jeremiah 33:25
Thus says the LORD: 'If my covenant of day and night fails, if I have not appointed the ordinances of heaven and earth;
Matthew 5:45
that you may be children of your Father who is in heaven. For he makes his sun to rise on the evil and the good, and sends rain on the just and the unjust.

General references

Exodus 20:4
"You shall not make for yourselves an idol, nor any image of anything that is in the heavens above, or that is in the earth beneath, or that is in the water under the earth:
Psalm 104:19
He appointed the moon for seasons. The sun knows when to set.
Psalm 136:7
To him who made the great lights; for his loving kindness endures forever:
1 Corinthians 15:41
There is one glory of the sun, another glory of the moon, and another glory of the stars; for one star differs from another star in glory.