Set up text message forwarding
- On all your iOS devices, go to Settings > Messages > Send & Receive. On your Mac, open Messages, choose Messages > Preferences, then click iMessage. Make sure that you're signed in to iMessage with the same Apple ID on all your devices.
- On your iPhone, go to Settings > Messages > Text Message Forwarding.*
- Choose which devices can send and receive text messages from your iPhone. If you're not using two-factor authentication for your Apple ID, a verification code appears on each of your other devices: enter that code on your iPhone.
As long as your iPhone is turned on and connected to Wi-Fi or a cellular network, new SMS/MMS texts can be sent and received on the devices that you added.
iCloud now keeps your entire messages history updated and available on all your devices—even when you set up a new device. Learn how to keep all your messages in iCloud.
Don't see the Text Message Forwarding setting on your iPhone? Go to Settings > Messages, turn off iMessage, turn it back on, tap Send & Receive, tap Use Your Apple ID for iMessage, then sign in with the same Apple ID used on your other devices.
How to forward text messages on your iPhone - Apple Support
https://support.apple.com/en-us/HT208386