To retrieve deleted text messages on an Android device, consider the following methods depending on your messaging app and whether you have backups enabled:

Using Google Messages

  1. Open the Google Messages app.
  2. Tap your profile icon (usually located beside the search icon).
  3. Select Archived.
  4. Long-press the messages you want to retrieve.
  5. Tap the Restore icon (an upward-facing arrow in a circle), and the message(s) will return to your conversation list.

Using Samsung Messages

  1. Open Samsung Messages.
  2. Tap the three-dot menu icon.
  3. Choose Trash.
  4. Long-tap the message(s) you want to restore.
  5. Tap the Restore icon (counterclockwise curving arrow).

If you're looking to restore from a backup:

Google Messages

  1. Open Settings on your smartphone.
  2. Scroll down to Google Services & preferences.
  3. Click Backup.
  4. Determine if the last backup contains the messages you want to restore.
  5. If it does, you'll need to factory reset your phone and restore from the backup. This method is risky, so ensure you have no other data that wasn't backed up.

Samsung Messages

  1. Open Samsung Messages.
  2. Tap the three-dot icon.
  3. Click Trash.
  4. Select a conversation and click Restore.
  5. If you don't see the desired texts, proceed to the next step.
  6. Go to Settings > Accounts and backup > Samsung Cloud > Restore data.
  7. Find the backup with the necessary messages and restore from that backup.

Remember, these methods are only effective if you have backups enabled. If you haven't. Additionally, you can try contacting the other party in the conversation for a copy of the messages if they still have them.