If you regularly like to fall asleep to music, you may find it handy to know that the iPhone and other iOS devices have a sleep timer feature hidden away in the Clock app’s Timer section. To find this, simply open up the Clock app and go to the “Timer” section. Set a duration for the timer, and instead of choosing a sound, scroll down to the bottom and select the “Stop Playing” option. To set this up even more quickly, you can open the Clock app from the Control Center, which will take you directly to the Timer screen.

This doesn’t just work in the built-in Music app either; this feature will stop any audio — or even video — that happens to be playing when the timer expires, so it can be used with everything from Spotify to YouTube.