"The fine linen bright and clean is the good deeds of the saints" Rev 19:7,8. Also Matthew 22:11-13 is relevant.
and His bride has made herself ready. She was given clothing of fine linen, bright and
pure. For the fine linen she wears is the righteous acts of the saints.
Matthew 22:11-13 does not say that any are clothed in their own righteousness.
In fact the man thrown out was clothed that way and that is why he was tossed.