You can print text messages from your iPhone in several different ways. The most efficient method is to download a third-party app.
While screenshots serve the purpose, third-party apps for Android and iPhone do it in the best possible way, mentioning every necessary detail. Some of the most popular apps include SMS Backup & ...
If you're trying to recover texts or iMessages on iPhone, use iOS 16, Finder, iTunes, or iCloud to retrieve them.