Works both expose faith (“I’ll show you my faith by my works”) and build faith.
Are you talking, maybe, about people who have an “aha” moment and suddenly have “great faith” and then die before something exposes it? Personally I might call that an insight or belief, but I don’t think I’d call it “faith” until they exercised it. Faith is purified and refined by testing it. Testing happens when one goes about trying to use one’s faith. One reason is that testing can help us separate acts of the will, from acts of surrender to the Lord.
That said, I trust God knows exactly what each of us would have done had we not died, so He knows whether this “faith” is pure. On a human basis, we turn to scripture, a person says they have faith without works, and we say we’ll show you our faith by our works. So we’re not really saying “you have no faith without works,” just that we have seen no human sign of it and from a human’s standpoint, if the faith was not accompanied by works, then we don’t know that it’s pure faith.
That being said, the “works” required don’t have to be great. Mother Teresa said, “we cannot all do great things, but we can do small things with great love.” I would say a kind and loving word to someone on one’s death bed, uttered in faith, would technically be a “work.” Forgiving someone could be a work. Someone with an “aha” moment where suddenly everything makes sense, is apt to go straight into some of these kinds of “works.”
Alan