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.
Arcana Coelestia #1710
1710. 'And pursued as far as Dan' means a state of purification. This is clear from the train of thought in the internal sense. 'Pursuing enemies' here means casting out the evils and falsities which were present with goods and truths and which caused these to be no more than goods and truths in outward appearance, and thus it means liberating them and purifying them. 'As far as Dan' means to Canaan's furthest boundary, and so to the outer limits to which they had fled. That Dan means the furthest boundaries or outer limits of Canaan is clear from various parts of the Word, as in Samuel,
To translate the kingdom from the house of Saul and to set up the throne of David over Israel and over Judah. from Dan even to Beersheba. 2 Samuel 3:10.
In the same book,
The whole of Israel from Dan even to Beersheba will be assembled together. 2 Samuel 17:10.
In the same book,
David said to Joab, Go through all the tribes of Israel from Dan even to Beersheba. 2 Samuel 24:2, 15.
In the Book of Kings,
Judah and Israel dwelt safely, every one under his vine and under his fig tree, from Dan even to Beersheba. 1 Kings 4:25.
From these quotations it is evident that Dan was the furthest boundary of Canaan, in which direction the enemies were pursued that were infesting the goods and truths of the External Man. But because Dan was a boundary of Canaan, and so inside Canaan, they were driven still further away so that they should not remain there - namely to 'Hobah on the left of Damascus', as is clear from the verse that comes next - and in this way purification was accomplished. As stated already, 'the land of Canaan' means in a holy sense the Lord's kingdom, and thus the celestial element of love, or the good of love, chiefly the good residing in the Lord.