How to Turn Off Auto Lock on an iPhone
When you get a brand-new iPhone, the default Auto Lock settings are 30 seconds. That means after half a minute of inactivity, your phone will dim down and automatically lock the screen. This built-in system protects the phone'
Source: alphr.com