If you need to return to stock for a trade-in or repair:
: Once the device is completely off, press and hold the Power button and Volume Down button at the same time for a few seconds.
Use Volume Up/Down to scroll through options. Press Power once to select an option.
If the standard shortcut takes you to a different menu, you can navigate to Fastboot through the Recovery environment: