A Microsoft file hosting and synchronization service.
Hi!
Welcome to Microsoft Q&A forum.
OneDrive automatically keeps older versions of files. You can do this first:
Go to OneDrive in your browser (not Finder on Mac) and locate the file, do a right-click on Version history and look for a more recent version. If you find it, click restore.
This is the best way to recover it.