Business Insider: A lot of people like to fall asleep to music, hence the ubiquitous clock-radio of yesteryear, which had a timer to shut itself off after serenading you to sleep.
But if you want to fall asleep to Apple Music using your iPhone, your phone will keep on playing straight through to morning, which might not be exactly what you’re looking for. Thankfully, you can set a sleep timer by combining Apple Music with the Clock app.
To set up an Apple Music timer:
1. Start the Apple Music app and start playing whatever music you want to fall asleep to.
2. Start the Clock app and tap the Timer tab at the bottom.
3. Set a timer for the length of time you want the music to play.
4. Tap When Timer Ends and scroll all the way down to tap Stop Playing. Then tap Set.
5. Tap Start.