For transfer SMS history from one iPhone to another iPhone, just follow below steps:
1. Backup the source iPhone in iTunes: run iTunes, connect the iPhone to computer, when the iPhone appears under Devices in your iTunes sidebar, Right -Click it (Windows) / Control-click it (Mac) and select the Back Up option.

2. Backup the destination iPhone: disconnect source iPhone, connect destination iPhone to computer, when the iPhone appears under Devices in your iTunes sidebar, Right -Click it (Windows) / Control-click it (Mac) and select the Back Up option.
3. Run iBackupBot, select the backup of source iPhone in sidebar, then click the checkbox before /Library/SMS/sms.db in right side window.

4. Press CTRL+E (Windows) / ⌘E (Mac) and select “Export only checked file(s).” option, then check “Export with backup information, for import to another backup.” option, and press OK button, select a folder exist on your computer.

5. Select the backup of destination iPhone in iBackupBot sidebar, then press CTRL+I (Windows) / ⌘I (Mac), select the exported file in step 4.
6. Press CTRL+R (Windows) / ⌘R (Mac) to restore modified backup to destination iPhone.
Then you can wait, after the restore processing done, your iPhone will restart automatically.