If you see it, you can find an older version of the document you are working on with just a few clicks.
To see if the program you are working with has the feature, look for it in the App menu section of the Menu bar under File. Not every application has the Revert To feature, but the good ones always do.
How to restore an older version of a file on the Mac