Arcana Coelestia # 3864
3864. 'My affliction' - that is to say, 'Because Jehovah has seen it' - means a state of arriving at good. This is clear from the meaning of 'affliction' as temptation, dealt with in 1846. And because temptation is the means by which a person arrives at good 'my affliction' here means a state of moving on from truth which is external and of arriving at good which is internal.
John 14:17-19
17
the Spirit of truth, whom the world can't receive; for it doesn't see him, neither knows him. You know him, for he lives with you, and will be in you.
18
I will not leave you orphans. I will come to you.
19
Yet a little while, and the world will see me no more; but you will see me. Because I live, you will live also.