There are Add-Ons available that provide the option of a "query history". Tools like SQL Prompt (Red Gate) or SSMSBoost (Solutions Crew).
You'd need to find the folder where this information is stored and either copy it to an archive folder or do whatever you need to do with those files.