I just did this to myself today and freaked out. You can go to your settings, accounts, Samsung account (make sure you have messaging synced checked), then hit restore data. It takes a minute but it will restore everything back from the last time it synced. After you do that, make sure to back up your data again just to be safe.
... View more