Find deleted messages
How can I access deleted messages
How can I access deleted messages
You can restore deleted messages if you include messages in your device backups. You can restore a backup that includes the deleted text. However, that will overwrite the current contents on your device with the contents in the backup.
See this for help with restoring a backup.
Restore your iPhone, iPad, or iPod touch from a backup - Apple Support
If you sync messages with iCloud and you delete them, they are gone for good.
Find deleted messages