I recall one TNG episode where the Enterprise finds a adrift ship with people who had terminal diseases and had been in cryogenic sleep until there would be a cure in the future. Picard reams of the guys who wants to get back to Earth and his financial holdings. Picard says “your bank no longer exists”.
I think I remember that one , also. What struck me as odd was the snottiness towards capitalism and the cryonic sleep. The crew basically lectured the people how cryogenic sleep was a “fad” that only the elitist rich did. Since the people who did it were actually alive whereas the people who didn’t do it were dead , it seemed rather stupid to lecture them. It’s kind of like going up to a 300 million Powerball winner and telling them only stupid people play the lottery because nobody wins.