Arcana Coelestia # 6404
6404. 'Gad' means works motivated by truth but not as yet by good. This is clear from the representation of 'Gad' as works, dealt with in 3934, 3935, here works that are motivated by truth but not as yet by good. This meaning is evident from the description of the man in the internal sense; it is also what follows in the overall line of thought, for 'Dan' immediately above represents those who are guided by truth but not as yet by good, 6396, and now here 'Gad' represents those who perform works that are motivated by truth but not as yet by good. The essential nature of those works will be stated in what follows immediately below.
Revelation 20:12-13
12
I saw the dead, the great and the small, standing before the throne, and they opened books. Another book was opened, which is the book of life. The dead were judged out of the things which were written in the books, according to their works.
13
The sea gave up the dead who were in it. Death and Hades gave up the dead who were in them. They were judged, each one according to his works.