Set Do Not Disturb for bedtime on iPhone
To silence iPhone when you’re going to sleep, you can turn on Do Not Disturb. This setting dims your display, silences calls, and sends notifications to Notification Center until you unlock your iPhone in the morning.
Turn on Do Not Disturb for bedtime
Go to Settings > Do Not Disturb.
Turn on Do Not Disturb, then turn on Scheduled.
Tap From, then set the beginning and ending times for your sleep.
During these hours, appears in the status bar.
Turn on Dim Lock Screen.
To silence incoming calls, tap Allow Calls From, then select No One.
Do Not Disturb turns off automatically at the end of the quiet hours you specify. To turn it off sooner, tap the Do Not Disturb notification on the Lock screen, then tap Turn Off. When Do Not Disturb is off, notifications resume.
To set a regular bedtime schedule, see Set an alarm or bedtime schedule on iPhone.
To keep calls, text messages, and notifications from distracting you while you drive, Turn on Do Not Disturb While Driving on iPhone.