Tap the three-dot menu in the upper-right corner and open the Recycle bin. Check your deleted text messages. Long tap the message you want to retrieve. Select Restore at the bottom and check the same in your primary inbox.