Job 31:26

If I have beheld the sun when it shined, Or the moon walking in brightness,

Ezekiel 8:16

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

Deuteronomy 4:19

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, thou be drawn away and worship them, and serve them, which Jehovah thy God hath allotted unto all the peoples under the whole heaven.

Deuteronomy 17:3

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

2 Kings 23:5

And he put down the idolatrous priests, whom the kings of Judah had ordained to burn incense in the high places in the cities of Judah, and in the places round about Jerusalem; them also that burned incense unto Baal, to the sun, and to the moon, and to the planets, and to all the host of heaven.

2 Kings 23:11

And he took away the horses that the kings of Judah had given to the sun, at the entrance of the house of Jehovah, 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 certainly perform every word that is gone forth out of our mouth, to burn incense unto the queen of heaven, and to pour out drink-offerings unto her, as we have done, we and our fathers, our kings and our princes, in the cities of Judah, and in the streets of Jerusalem; for then had we plenty of victuals, and were well, and saw no evil.

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: he made the stars also.

Deuteronomy 11:16

Take heed to yourselves, lest your heart be deceived, and ye turn aside, and serve other gods, and worship them;

Psalm 8:3-4

When I consider thy heavens, the work of thy fingers, The moon and the stars, which thou hast ordained;

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 worshipped: they shall not be gathered, nor be buried, they shall be for dung upon the face of the earth.

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: he made the stars also.
Deuteronomy 4:19
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, thou be drawn away and worship them, and serve them, which Jehovah thy God hath allotted unto all the peoples under the whole heaven.
Deuteronomy 11:16
Take heed to yourselves, lest your heart be deceived, and ye turn aside, and serve other gods, and worship them;
Deuteronomy 17:3
and hath gone and served other gods, and worshipped them, or the sun, or the moon, or any of the host of heaven, which I have not commanded;
2 Kings 23:5
And he put down the idolatrous priests, whom the kings of Judah had ordained to burn incense in the high places in the cities of Judah, and in the places round about Jerusalem; them also that burned incense unto Baal, to the sun, and to the moon, and to the planets, and to all the host of heaven.
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 worshipped: they shall not be gathered, nor be buried, they shall be for dung upon the face of the earth.
Ezekiel 8:16
And he brought me into the inner court of Jehovah's house; and behold, at the door of the temple of Jehovah, between the porch and the altar, were about five and twenty men, with their backs toward the temple of Jehovah, and their faces toward the east; and they were worshipping the sun toward the east.

The moon

Psalm 8:3
When I consider thy heavens, the work of thy fingers, The moon and the stars, which thou hast ordained;
Jeremiah 44:17
But we will certainly perform every word that is gone forth out of our mouth, to burn incense unto the queen of heaven, and to pour out drink-offerings unto her, as we have done, we and our fathers, our kings and our princes, in the cities of Judah, and in the streets of Jerusalem; for then had we plenty of victuals, and were well, and saw no evil.

General references

Psalm 104:19
He appointed the moon for seasons: The sun knoweth his going down.
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 differeth from another star in glory.

American Standard Version Public Domain