Job 31:26

if I have gazed at the sun when it was shining
or at the moon moving in splendor,

Ezekiel 8:16

So He brought me to the inner court of the Lord’s house, and there were about 25 men at the entrance of the Lord’s temple, between the portico and the altar, with their backs to the Lord’s temple and their faces turned to the east. They were bowing to the east in worship of the sun.

Deuteronomy 4:19

When you look to the heavens and see the sun, moon, and stars—all the array of heaven—do not be led astray to bow down and worship them. The Lord your God has provided them for all people everywhere under heaven.

Deuteronomy 17:3

and has gone to worship other gods by bowing down to the sun, moon, or all the stars in the sky—which I have forbidden—

2 Kings 23:5

Then he did away with the idolatrous priests the kings of Judah had appointed to burn incense at the high places in the cities of Judah and in the areas surrounding Jerusalem. They had burned incense to Baal, and to the sun, moon, constellations, and the whole heavenly host.

2 Kings 23:11

He did away with the horses that the kings of Judah had dedicated to the sun. They had been at the entrance of the Lord’s temple in the precincts by the chamber of Nathan-melech the court official, and he burned up the chariots of the sun.

Jeremiah 44:17

Instead, we will do everything we said we would: burn incense to the queen of heaven and offer drink offerings to her just as we, our fathers, our kings, and our officials did in Judah’s cities and in Jerusalem’s streets. Then we had enough food and good things and saw no disaster,

Genesis 1:16-18

God made the two great lights—the greater light to have dominion over the day and the lesser light to have dominion over the night—as well as the stars.

Deuteronomy 11:16

Be careful that you are not enticed to turn aside, worship, and bow down to other gods.

Psalm 8:3-4

When I observe Your heavens,
the work of Your fingers,
the moon and the stars,
which You set in place,

Jeremiah 8:2

They will be exposed to the sun, the moon, and the whole heavenly host, which they have loved, served, followed, consulted, and worshiped. Their bones will not be collected and buried but will become like manure on the surface of the soil.

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
God made the two great lights—the greater light to have dominion over the day and the lesser light to have dominion over the night—as well as the stars.
Deuteronomy 4:19
When you look to the heavens and see the sun, moon, and stars—all the array of heaven—do not be led astray to bow down and worship them. The Lord your God has provided them for all people everywhere under heaven.
Deuteronomy 11:16
Be careful that you are not enticed to turn aside, worship, and bow down to other gods.
Deuteronomy 17:3
and has gone to worship other gods by bowing down to the sun, moon, or all the stars in the sky—which I have forbidden—
2 Kings 23:5
Then he did away with the idolatrous priests the kings of Judah had appointed to burn incense at the high places in the cities of Judah and in the areas surrounding Jerusalem. They had burned incense to Baal, and to the sun, moon, constellations, and the whole heavenly host.
Jeremiah 8:2
They will be exposed to the sun, the moon, and the whole heavenly host, which they have loved, served, followed, consulted, and worshiped. Their bones will not be collected and buried but will become like manure on the surface of the soil.
Ezekiel 8:16
So He brought me to the inner court of the Lord’s house, and there were about 25 men at the entrance of the Lord’s temple, between the portico and the altar, with their backs to the Lord’s temple and their faces turned to the east. They were bowing to the east in worship of the sun.

The moon

Psalm 8:3
When I observe Your heavens,
the work of Your fingers,
the moon and the stars,
which You set in place,
Jeremiah 44:17
Instead, we will do everything we said we would: burn incense to the queen of heaven and offer drink offerings to her just as we, our fathers, our kings, and our officials did in Judah’s cities and in Jerusalem’s streets. Then we had enough food and good things and saw no disaster,

General references

Psalm 104:19
He made the moon to mark the festivals;
the sun knows when to set.
1 Corinthians 15:41
There is a splendor of the sun, another of the moon, and another of the stars; for one star differs from another star in splendor.

Holman Christian Standard Bible®, Copyright © 1999, 2000, 2002, 2003, 2009 by Holman Bible Publishers.