Arcana Coelestia # 2346
2346. 'The men of the city' means those immersed in falsities, and 'the men of Sodom' those who are immersed in evils. This is clear from the meaning of 'a city' and of 'Sodom'. That 'a city' means truths and also falsities, or things that are the reverse of truths, has been shown already in 402, and that 'Sodom' means evils of every kind, in 2220, 2246. Since falsities as well as evils were involved in the investigation or visitation, they are called 'the men of the city, the men of Sodom'. If both had not been meant they would have been called simply 'the men of Sodom'.
Arcana Coelestia # 1689
1689. That 'the king of Sodom and [the king] of Gomorrah fled, and they fell there' means that those evils and falsities were overcome is clear from the meaning of 'Sodom and Gomorrah' as the evils giving rise to evil desires and the falsities giving rise to false persuasions, dealt with above - 'the king of Sodom and [the king] of Gomorrah' at this point stand for all evils and falsities, including those meant by the remaining kings - and also from the meaning of 'fleeing and falling' as being overcome.