Arcana Coelestia # 9344
9344. 'You shall not make a covenant with them and their gods' means no contact with evils and falsities. This is clear from the meaning of 'making a covenant' as being joined together, dealt with in 665, 666, 1023, 1038, 1864, 1996, 2003, 2021, 6804, 8767, 8778, thus also being in contact with, for people who communicate with one another are joined to one another; from the meaning of the inhabitants of the land, to whom 'those with whom they were not to make a covenant' refers here, as evils, dealt with just above in 9342; and from the meaning of 'their gods' as falsities, dealt with in 4402 (end), 4544, 7873, 8867, 8941.
Arcana Coelestia # 1023
1023. That 'and I, behold I am establishing My covenant' means the Lord's presence in charity becomes clear from the meaning of 'a covenant', dealt with in 666, where it was shown that 'a covenant' means regeneration, and in particular the conjunction of the Lord with a regenerate person by means of love. It was also shown there that the heavenly marriage is the actual covenant itself, and that consequently the heavenly marriage exists with every regenerate person. The nature of this marriage or covenant has also been shown already.
[2] The heavenly marriage with the member of the Most Ancient Church existed in the area of his own will, but the heavenly marriage with the member of the Ancient Church came into existence in the area of his own understanding. Actually when the will part of man's mind had become utterly corrupted, the Lord in miraculous fashion separated the area of his own understanding from that corrupted will part, and within the area of man's own understanding He formed a new will, which is conscience. Into conscience He infused charity, and into charity innocence, and in this manner joined Himself to man, or what amounts to the same, established a covenant with him.
[3] To the extent that the area of a person's own will can be separated from this understanding part the Lord is able to be present with him, that is, to join Himself or establish a covenant with him. Temptations and similar means of regeneration render inactive the area of a person's own will, so that it is reduced to nothing and so to speak dies. To the extent that this happens the Lord can operate within charity by means of conscience implanted in the area of a person's own understanding. This is what is called 'a covenant' here.