Job 31:26

if I have looked at the sun when it shone, or the moon moving in splendor,

Ezekiel 8:16

And he brought me into the inner court of the house of the LORD. And behold, at the entrance of 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, worshiping the sun toward the east.

Deuteronomy 4:19

And beware lest you raise your eyes to heaven, and when you see the sun and the moon and the stars, all the host of heaven, you be drawn away and bow down to them and serve them, things that 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 host of heaven, which I have forbidden,

2 Kings 23:5

And he deposed the priests whom the kings of Judah had ordained to make offerings in the high places at the cities of Judah and around Jerusalem; those also who burned incense to Baal, to the sun and the moon and the constellations and all the host of the heavens.

2 Kings 23:11

And he removed the horses that the kings of Judah had dedicated to the sun, at the entrance to the house of the LORD, by the chamber of Nathan-melech the chamberlain, which was in the precincts. And he burned the chariots of the sun with fire.

Jeremiah 44:17

But we will do everything that we have vowed, make offerings to the queen of heaven and pour out drink offerings to her, as we did, both we and our fathers, our kings and our officials, in the cities of Judah and in the streets of Jerusalem. For then we had plenty of food, and prospered, and saw no disaster.

Genesis 1:16-18

And God made the two great lights--the greater light to rule the day and the lesser light to rule the night--and the stars.

Deuteronomy 11:16

Take care lest your heart be deceived, and you turn aside and serve other gods and worship them;

Psalm 8:3-4

When I look at your heavens, the work of your fingers, the moon and the stars, which you have set in place,

Jeremiah 8:2

And they shall be spread before the sun and the moon and all the host of heaven, which they have loved and served, which they have gone after, and which they have sought and worshiped. And they shall not be gathered or buried. They shall be as dung on the surface of the ground.

Treasury of Scripture Knowledge

Summary

If I beheld the sun when it shined, or the moon walking in brightness;

General references

Bible References

Beheld

Genesis 1:16
And God made the two great lights--the greater light to rule the day and the lesser light to rule the night--and the stars.
Deuteronomy 4:19
And beware lest you raise your eyes to heaven, and when you see the sun and the moon and the stars, all the host of heaven, you be drawn away and bow down to them and serve them, things that the LORD your God has allotted to all the peoples under the whole heaven.
Deuteronomy 11:16
Take care lest your heart be deceived, and you turn aside and serve other gods and worship them;
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 forbidden,
2 Kings 23:5
And he deposed the priests whom the kings of Judah had ordained to make offerings in the high places at the cities of Judah and around Jerusalem; those also who burned incense to Baal, to the sun and the moon and the constellations and all the host of the heavens.
Jeremiah 8:2
And they shall be spread before the sun and the moon and all the host of heaven, which they have loved and served, which they have gone after, and which they have sought and worshiped. And they shall not be gathered or buried. They shall be as dung on the surface of the ground.
Ezekiel 8:16
And he brought me into the inner court of the house of the LORD. And behold, at the entrance of 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, worshiping the sun toward the east.

The moon

Psalm 8:3
When I look at your heavens, the work of your fingers, the moon and the stars, which you have set in place,
Jeremiah 44:17
But we will do everything that we have vowed, make offerings to the queen of heaven and pour out drink offerings to her, as we did, both we and our fathers, our kings and our officials, in the cities of Judah and in the streets of Jerusalem. For then we had plenty of food, and prospered, and saw no disaster.

General references

Psalm 104:19
He made the moon to mark the seasons; the sun knows its time for setting.
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.

The Holy Bible, English Standard Version® copyright © 2001 by Crossway Bibles, a publishing ministry of Good News Publishers.