Arcana Coelestia #47
47. That these words contain arcana concerning regeneration becomes additionally clear from the fact that verse 24 above spoke of the earth bringing forth 'living creatures, beasts, and wild animals of the earth', while in the verse that followed the order was different, namely that God made the wild animals of the earth first and then the beasts. Indeed a person does first produce things so to speak from himself, and continues to do so until he becomes celestial. And so regeneration begins with the external man and moves on to the internal. This is why there is a different order here, with external things coming first.
Psalms 24
1
The earth is the LORD's, and the fulness thereof; the world, and they that dwell therein.
2
For he hath founded it upon the seas, and established it upon the floods.
3
Who shall ascend into the hill of the LORD? or who shall stand in his holy place?
4
He that hath clean hands, and a pure heart; who hath not lifted up his soul unto vanity, nor sworn deceitfully.
5
He shall receive the blessing from the LORD, and righteousness from the God of his salvation.
6
This is the generation of them that seek him, that seek thy face, O Jacob. Selah.
7
Lift up your head, O ye gates; and be ye Lift up, ye everlasting doors; and the King of glory shall come in.
8
Who is this King of glory? The LORD strong and mighty, The LORD mighty in battle.
9
Lift up your heads, O ye gates; even Lift them up, ye everlasting doors; and the King of glory shall come in.
10
Who is this King of glory? The LORD of hosts, he is the King of glory. Selah.