Dear Samsung Member,
Greetings from Samsung Customer Support!
We would like to inform you that please check if you have synced your data with your Gmail or Samsung account then you may retrieve your data. (Go to settings>>Accounts & backup>>Backup & restore>>Restore data).
However, if you have not taken any backup then there is no way to retrieve your data. For future we recommend you to take back up in phone.
Install Smart Switch App from Samsung galaxy Store.
Data backup process via 'Smart Switch Mobile App'>Open Smart Switch App >Click on Memory Card Icon >Backup option >Choose the data for Backup >Backup.
Thank you for writing to Samsung.
Samsung Customer Support