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.

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,

2 Kings 17:16

They forsook all the commandments of the Lord their God and made for themselves 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 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.

Genesis 2:1

Thus the heavens and the earth were completed, and all their hosts.

Romans 1:25

For they 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 govern the day, and the lesser light to govern the night; He made the stars also.

Joshua 10:12-13

Then Joshua spoke to the Lord in the day when the Lord delivered up the Amorites before the sons of Israel, and he said in the sight of Israel,
“O sun, stand still at Gibeon,
And O moon in the valley of Aijalon.”

2 Kings 23:4-5

Then the king commanded Hilkiah the high priest and the priests of the second order and the doorkeepers, to bring out of the temple of the Lord all the vessels that were made for Baal, for Asherah, and for all the host of heaven; and he burned them outside Jerusalem in the fields of the Kidron, and carried their ashes to Bethel.

2 Kings 23:11

He did away with the horses which the kings of Judah had given to the sun, at the entrance of the house of the Lord, by the chamber of Nathan-melech the official, which was in the precincts; and he burned the chariots of the sun with fire.

Nehemiah 9:6

You alone are the Lord.
You have made the heavens,
The heaven of heavens with all their host,
The earth and all that is on it,
The seas and all that is in them.
You give life to all of them
And the heavenly host bows down before You.

Job 31:26-28

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

Psalm 74:16-17

Yours is the day, Yours also is the night;
You have prepared the light and the sun.

Psalm 136:7-9

To Him who made the great lights,
For His lovingkindness is everlasting:

Psalm 148:3-5

Praise Him, sun and moon;
Praise Him, all stars of light!

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.

Jeremiah 19:13

The houses of Jerusalem and the houses of the kings of Judah will be defiled like the place Topheth, because of all the houses on whose rooftops they burned sacrifices to all the heavenly host and poured out drink offerings to other gods.”’”

Jeremiah 31:35

Thus says the Lord,
Who gives the sun for light by day
And the fixed order of the moon and the stars for 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 for day and night stand not, and the fixed patterns of heaven and earth I have not established,

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.

Amos 5:25-26

Did you present Me with sacrifices and grain offerings in the wilderness for forty years, O house of Israel?

Zephaniah 1:5

“And those who bow down on the housetops to the host of heaven,
And those who bow down and swear to the Lord and yet swear by Milcom,

Matthew 5:45

so that you may be sons of your Father who is in heaven; for He causes His sun to rise on the evil and the good, and sends rain on the righteous and the unrighteous.

Acts 7:42

But God turned away and delivered them up to serve the host of heaven; as it is written in the book of the prophets, ‘It was not to Me that you offered victims and sacrifices forty years in the wilderness, was it, 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 heavenly host, which I have not commanded,
2 Kings 23:4
Then the king commanded Hilkiah the high priest and the priests of the second order and the doorkeepers, to bring out of the temple of the Lord all the vessels that were made for Baal, for Asherah, and for all the host of heaven; and he burned them outside Jerusalem in the fields of the Kidron, and carried their ashes to Bethel.
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.
Amos 5:25
Did you present Me with sacrifices and grain offerings in the wilderness for forty years, O house of Israel?

Which the lord

Genesis 1:16
God made the two great lights, the greater light to govern the day, and the lesser light to govern the night; He made the stars also.
Joshua 10:12
Then Joshua spoke to the Lord in the day when the Lord delivered up the Amorites before the sons of Israel, and he said in the sight of Israel,
“O sun, stand still at Gibeon,
And O moon in the valley of Aijalon.”
Nehemiah 9:6
You alone are the Lord.
You have made the heavens,
The heaven of heavens with all their host,
The earth and all that is on it,
The seas and all that is in them.
You give life to all of them
And the heavenly host bows down before You.
Psalm 74:16
Yours is the day, Yours also is the night;
You have prepared the light and the sun.
Psalm 136:7
To Him who made the great lights,
For His lovingkindness is everlasting:
Psalm 148:3
Praise Him, sun and moon;
Praise Him, all stars of light!
Jeremiah 31:35
Thus says the Lord,
Who gives the sun for light by day
And the fixed order of the moon and the stars for 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 for day and night stand not, and the fixed patterns of heaven and earth I have not established,
Matthew 5:45
so that you may be sons of your Father who is in heaven; for He causes His sun to rise on the evil and the good, and sends rain on the righteous and the unrighteous.

General references

Exodus 20:4
You shall not make for yourself an idol, or any likeness of what is in heaven above or on the earth beneath or in the water under the earth.
Psalm 104:19
He made the moon for the seasons;
The sun knows the place of its setting.
Psalm 136:7
To Him who made the great lights,
For His lovingkindness is everlasting:
1 Corinthians 15:41
There is one glory of the sun, and another glory of the moon, and another glory of the stars; for star differs from star in glory.