Check the Messages app’s Recently Deleted folder
Open Messages
Tap Edit or Filters
Tap Show Recently Deleted
Select the deleted texts
Tap Recover
Restore from an iCloud backup
Go to Settings
Tap your name
Tap iCloud
Tap iCloud Backup
Check for an available backup date
Erase the iPhone
Set up the iPhone again
Choose Restore from iCloud Backup
Restore from a computer backup
Connect the iPhone to a Mac or PC
Open Finder on Mac or iTunes on Windows or older macOS
Select the iPhone
Choose Restore Backup
Pick a backup made before the texts were deleted
Check other Apple devices
Open Messages on iPad, Mac, or another iPhone signed into the same Apple ID
Look for the deleted texts there
Contact your carrier
Ask whether message records are available
Request any accessible SMS logs
Use a third-party recovery tool
Install a reputable iPhone data recovery app
Scan the device or backup
Recover available messages
