A family of Microsoft word processing software products for creating web, email, and print documents.
If the document was synchronized with OneDrive, sign in to OneDrive on the web at https://onedrive.live.com and try its Version History facility. See https://support.microsoft.com/en-us/office/restore-your-onedrive-files-48cc6a72-1aca-412c-a670-e6f5b563c1c6 .
Note that if you saved locally and if you do not have any backup software installed, you can't recover the content.
For an open document, you can go back to earlier edits with Undo. Press Ctrl+Z, repeatedly if necessary. This will only work for as long as the document is open.