For anyone that doesn’t know, just hold down the Power / Lock button and one of the volume buttons
You can do this while it’s in your pocket and continue holding the button down for 8 seconds. Or if you can access the screen, just slide on the Emergency SOS prompt
Holding down these buttons also prevents FaceID / TouchID, which can be useful if dealing with police or other authority figures.