If you forgot the Apple ID (iCloud) password, enter the Apple (iCloud) ID, and click Forgot Password. See if you can get a Rescue or Notification email option. Link to contact Apple Support at the end of the 2nd article.
Apple ID - Manage
Apple ID – Forgot Password *
If you have 2 Factor Authentication enabled, if you can't recover the password using the steps above, you will need to use Account Recovery. The Recovery Process is an automated process and the length of time it takes can vary a lot. Apple ID Support can only answer your questions. They can't intervene in or speed up the process. The article below has some suggestions to shorten the time the process takes.
Apple ID - Recover your Apple ID with two-factor authentication account recovery. *
If necessary if you are the original owner, contact Apple. Apple can remove the ID if provided the required paperwork to include the original purchase receipt with the serial number on it.
Request additional support for unlocking your device. -
You used to be able to take the device, the original purchase receipt with the serial number, and a photo ID to the nearest Apple Store (if it has reopened) and have them remove the ID. This may have changed, so call the store before going to make sure they can help.
Genius Bar Reservation and Apple Support Options - Apple. -