Arcana Coelestia #1020
1020. That these things are meant becomes clear from the fact that everything put together as history from Genesis 1 down to Eber in Chapter 11 means something different from what appears in the letter, and from the consideration that the historical narratives there are purely made-up history customary among the most ancient people. When attesting the truth of some matter they would say that 'Jehovah said it'. Here however 'God' is used because the subject is the spiritual Church. And they did the same when anything true was being, or had been, put into effect.
Matthew 2:13-15
13
Now when they had departed, behold, an angel of the Lord appeared to Joseph in a dream, saying, "Arise and take the young child and his mother, and flee into Egypt, and stay there until I tell you, for Herod will seek the young child to destroy him."
14
He arose and took the young child and his mother by night, and departed into Egypt,
15
and was there until the death of Herod; that it might be fulfilled which was spoken by the Lord through the prophet, saying, "Out of Egypt I called my son."