Follow these steps by clicking the link below if you’ve forgotten your passcode, or if a message says that your device is disabled on your iPhone, iPad.
Source: If you forgot the passcode for your iPhone, iPad, or iPod touch, or your device is disabled