And its gates shall not be shut by day, for there will be no night there.
Above, we said that the twelve apostles were represented by the twelve gates said to have been made of twelve pearls. But here, where the gates are mentioned without number, they have another meaning: they signify the hearts of the faithful. For the faithful, while living in this life, endure night, that is, demons and wicked people. They shut the gates at night when, against every temptation of demons, they lock the entrances to their minds and drive such temptations away. They also shut the gates at night when they fo...rtify their hearts against the malice of wicked people, so that they do not listen to a slanderous tongue, repay evil for evil, or curse for curse; and, as the prophet says, “They shall shake their hands free of every bribe, stop their ears so they do not hear of bloodshed, and close their eyes so they do not see evil” (Isa. 33:15). But in that blessed state, where no demon or wicked one can exist to urge evil, those represented by night, the guarding of the gates, that is, of the minds, will not be necessary. For, literally, it will also be unending day there, with no night to follow.
Source: Commentary on Revelation