31. That 'the great lights' mean love and faith, and are also mentioned as the sun, the moon, and the stars, is clear from various places in the Prophets, as in Ezekiel,
When I have blotted you out, I will cover the heavens and darken their stars, I will cover the sun with a cloud, and the moon will not give its light. All the bright lights in the heavens I will make dark over you, and I will put darkness over your land. Ezekiel 32:7-8.
This refers to Pharaoh and the Egyptians, who are used in the Word to mean the sensory and the factual. The meaning here is that they will have blotted out love and faith by means of sensory evidence and factual knowledge. In Isaiah,
The day of Jehovah for making the earth a desolation; for the stars of the heavens and their constellations 1 will not give their light; the sun will be darkened in its rising, and the moon will not shed its light. Isaiah 13:9-10.
The day of Jehovah is coming, a day of darkness and thick darkness. The earth quakes before Him, the heavens tremble, the sun and moon are darkened, and the stars withdraw their shining. Joel 2:10.
(References: Joel 2:1-2)
 In Isaiah, in reference to the Lord's Coming and the enlightenment of gentiles, and so to a new Church, in particular to individuals who are in darkness but who are beginning to receive the light and be regenerated,
Arise, shine, for your light has come. Behold, darkness is covering the earth, and thick darkness the peoples, but Jehovah will arise upon you, and nations will walk towards your light, and kings to the brightness of your rising. Jehovah will be for you an everlasting light; your sun will no more go down nor your moon be withdrawn, for Jehovah will be for you an everlasting light. Isaiah 60:1-3, 19-20.
Jehovah makes the heavens by intelligence, He spreads out the earth upon the waters, He makes the great lights, the sun to have dominion over the day, and the moon and stars to have dominion over the night. Psalms 136:5-9.
And in the same author,
Praise Jehovah, sun and moon, praise Him, all stars of light! Praise Him, heaven of heavens, and waters that are above the heavens! Psalms 148:3-4.
(References: Isaiah 60:20)
 In all of these places 'the lights' mean love and faith. Because the lights represented and meant love and faith in the Lord, the Jewish Church was commanded to keep a light burning all the time from evening till morning, for every command which that Church received was representative of the Lord. Concerning this light it is said,
Command the sons of Israel that they take oil for the light, to cause a lamp to burn continually. In the Tent of Meeting outside the veil which is before the testimony Aaron and his sons shall tend it from evening to morning before Jehovah. [Exodus 27:20-21]
That this means the love and faith which the Lord kindles and causes to shine in the internal man, and by means of the internal man in the external man, will in the Lord's Divine mercy be shown at that point in Exodus.
1. literally, orions
(References: Genesis 1:14-17)
1837. That 'as the sun was going down' means the period of time and the state just before the close is clear from the meaning of 'the sun'. In the internal sense 'the sun' means the Lord, and because of this means the celestial things of love and charity, consequently love and charity themselves, dealt with already in 30-38, and 1053. From this it is evident that 'the going down of the sun' is the last period of time in the Church, which is called the close, when charity does not exist any longer. The Lord's Church is also compared to the times of day, its earliest time being compared to sunrise, or dawn and morning, and its final period to sundown, or evening and the shadows that fall then; for there is indeed a similarity between the two. In like manner the Church is compared to the seasons of the year, its earliest time being compared to spring when everything is flowering, while the time next to the last is compared to autumn when everything starts to die off. Indeed, the Church is also compared to metals, its first time being called golden, its last that of iron and clay, as in Daniel 2:31-33. These considerations show what is meant by 'as the sun was going down', namely that the period of time and the state just before the close are meant, for the sun had not yet gone down. In what follows the subject is the state of the Church when the sun had gone down, at which point thick darkness descended, and a smoking furnace and a flaming torch passed between the pieces.
(References: Genesis 15:12)