Where is the old device? Using the old device if it is with you --> Following this process is one way out. The steps given in this link will help you reset the passcode -> If you forgot the passcode for your iPhone, iPad, or iPod touch, or your ...
From your post, I guess the old device is not with you then...
Second Process has Risk: Remove your old device from your iCloud account after logging in to https://www.icloud.com with your Apple ID credentials.
The risk is if you remove the device from your account after you erase it, Activation Lock will be turned off. This allows another person to turn on and use your device.