2. Stop your music with a timer
This tip is perfect if you want some music to lull you to sleep. Launch your Clock app with a tap, and then tap on the Timer button in the lower right. Once there, set the timer for however long you want your media to play.
Next, tap “When Timer Ends,” and scroll all the way to the bottom. Tap on Stop Playing. Now, when you’re playing music at bedtime (or whenever, really), your iPhone will stop playing all media on your device when the timer runs out.