Job 31:26

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

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.

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.

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.

2 Kings 23:5

He got rid of the pagan priests. The kings of Judah appointed them to sacrifice at the illegal places of worship in the cities of Judah and all around Jerusalem. They had been sacrificing to Baal, the sun god, the moon god, the constellations of the zodiac (Mazzalohth Constellation-Job 38:32), and the entire army of heaven.

2 Kings 23:11

He also removed the horses that the kings of Judah had dedicated to the worship of the sun. He burned the chariots used in this worship.

Jeremiah 44:17

We will do everything that we said we would. We will offer sacrifices to our goddess, the Queen of Heaven, and we will pour out wine offerings to her, just as our ancestors, our king and our leaders, and we used to do in the towns of Judah and in the streets of Jerusalem. Then we had plenty of food, we were prosperous, and had no troubles.

Genesis 1:16-18

God made the two great lights. The sun was to govern the day. The moon was to govern the night. He made the stars also.

Deuteronomy 11:16

Guard yourselves! Your heart could be deceived. You could turn away and serve other gods and worship them.

Psalm 8:3-4

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

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.

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 sun was to govern the day. The moon was to govern the night. He made the stars also.
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.
Deuteronomy 11:16
Guard yourselves! Your heart could be deceived. You could turn away and serve other gods and worship them.
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.
2 Kings 23:5
He got rid of the pagan priests. The kings of Judah appointed them to sacrifice at the illegal places of worship in the cities of Judah and all around Jerusalem. They had been sacrificing to Baal, the sun god, the moon god, the constellations of the zodiac (Mazzalohth Constellation-Job 38:32), and the entire army 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.

The moon

Psalm 8:3
When I look at your heavens, the creation of your fingers, the moon and the stars that you have set in place,
Jeremiah 44:17
We will do everything that we said we would. We will offer sacrifices to our goddess, the Queen of Heaven, and we will pour out wine offerings to her, just as our ancestors, our king and our leaders, and we used to do in the towns of Judah and in the streets of Jerusalem. Then we had plenty of food, we were prosperous, and had no troubles.

General references

Psalm 104:19
You made the moon for the seasons. The sun knows the place of its 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 one star differs from another star in glory.