Concise Bible Dictionary:

This is the clothes-moth (one of the Tineæ), the destructive ravages of which are well known. In the East garments were kept in larger quantities, as property and for presents, as when Naaman the Syrian brought “changes of garments” as a present to Elisha, of which Gehazi obtained two (2 Kings 5:22-2322And he said, All is well. My master hath sent me, saying, Behold, even now there be come to me from mount Ephraim two young men of the sons of the prophets: give them, I pray thee, a talent of silver, and two changes of garments. 23And Naaman said, Be content, take two talents. And he urged him, and bound two talents of silver in two bags, with two changes of garments, and laid them upon two of his servants; and they bare them before him. (2 Kings 5:22‑23)). Moths do not attack the clothing that is worn; but they lay their eggs in what is laid up, in which the young find their food. From this the lesson is drawn to lay up treasures in heaven, where neither moth nor rust can corrupt or destroy (Job 13:2828And he, as a rotten thing, consumeth, as a garment that is moth eaten. (Job 13:28); Psa. 39:1111When thou with rebukes dost correct man for iniquity, thou makest his beauty to consume away like a moth: surely every man is vanity. Selah. (Psalm 39:11); Isa. 51:88For the moth shall eat them up like a garment, and the worm shall eat them like wool: but my righteousness shall be for ever, and my salvation from generation to generation. (Isaiah 51:8); Matt. 6:19-2019Lay not up for yourselves treasures upon earth, where moth and rust doth corrupt, and where thieves break through and steal: 20But lay up for yourselves treasures in heaven, where neither moth nor rust doth corrupt, and where thieves do not break through nor steal: (Matthew 6:19‑20); James 5:22Your riches are corrupted, and your garments are motheaten. (James 5:2)).