Arcana Coelestia #3367
3367. 'Jehovah appeared to him, and said' means thought coming from the Divine. This is clear from the meaning of 'appearing', when said of the Lord who is Jehovah, as the Divine itself which was within Him. The fact that Jehovah was within the Lord, and that the Lord Himself was Jehovah, has been shown in many places already, see 1343, 1725, 1729, 1733, 1736, 1791, 1815, 1819, 1822, 1902, 1921, 1999, 2004, 2005, 2018, 2025, 2156, 2329, 2447, 2921, 3023, 3035, 3061; and that to the extent the Lord had united the Human Essence to the Divine Essence He spoke to Jehovah as though to Himself, 1745, 1999. Thus 'Jehovah's appearing to him' in the internal sense means coming from the Divine. The fact that it was thought doing so is clear from the meaning of 'saying' as perceiving and also thinking, as has been shown quite often.
Arcana Coelestia #1819
1819. 'He said, O Lord Jehovih' means a conversing, so to speak, of the Interior Man with the Internal Man. This is clear from what was stated in the previous verse at the words 'Jehovah said to him', and also from what was stated in verse 2 of this chapter about the Lord Jehovih, as meaning a conversing of the Interior Man with the Internal Man, or Jehovah, especially when He was undergoing temptation.