Then when he says, do not quench the Spirit, he shows them how they are to regard the gifts of God. First, Paul shows that they must not curtail them; secondly, that they must not have a disdain for the gifts of God (5:20). The Holy Spirit is a divine, incorruptible and eternal person; and so He cannot be extinguished in His own substance. Nevertheless someone is said to quench the Spirit, in one way, by extinguishing the ardor for the Spirit either in himself or in somebody else. "Be aglow with the Spirit" (Rom. 12:11). For when somebody wishes to do something generous as a result of the impu...lse of the Holy Spirit, or even when some generous inclination arises, and the person impedes it, he extinguishes the Holy Spirit. "You always resist the Holy Spirit" (Ac. 7:51).
In another way one may extinguish the Holy Spirit by mortal sin. For the Holy Spirit always abides in Himself; but He abides in us when He makes us abide in Him. But when somebody commits a mortal sin, the Holy Spirit does not abide in him. "For a holy and disciplined spirit will flee from deceit, and will rise and depart from foolish thoughts, and will be ashamed at the approach of unrighteousness" (Wis. 1:5).
A third way in which one may extinguish the Spirit is by concealing Him; this is meant to imply that if you have the gift of the Spirit, make use of it for the benefit of your neighbors. "Hidden wisdom and unseen treasure, what advantage is there in either of them?" (Sir. 20:30). "Nor do men light a lamp and put it under a bushel, but on a stand, and it gives light to all in the house" (Matt. 5:15).
Source: Commentary on 1 Thessalonians