What to Do If You Forget Your Android Phone's PIN, Pattern, or Password
Android normally secures your device by demanding a PIN, pattern, or full password. Your phone isn’t useless if you forget the unlock code — you can bypass it and get back in.
Use Smart Lock Never Unlock Your Phone Smart Lock Samsung Find My Mobile Every Operating All Else Fails
Source: howtogeek.com