1. Navigate to the settings page on your phone. This is usually the grey clog icon.
2. Scroll down until you get to the "Security" tab. Click this section.
3. Click the section titled "Screen lock".
4. You can then choose to set a lock screen passcode (On some devices TouchID or Screen Swipe is also available).