Hi, welcome to iMore.
Subscribe to AppleMusic or take the trial if you're still eligible. Enable iCloud Music Library in Settings > Music on your iPhone 5S, choose for Merge if prompted, wait for all your music to upload to the cloud, then on your iPhone 7, enable iCloud Music Library and you're done.
If you have any further questions, please join our forum. We're happy to help.