Do Not Disturb settings allow you to choose periods of time when you do not want to receive calls and notifications on your device. Alerts generated when Do Not Disturb is enabled will be delivered once the time frame you set has ended.
How to configure Do Not Disturb settings for an Apple device
How to configure Do Not Disturb settings for an Android device