Greetings!
We appreciate your post in the Apple Support Community.
If you've forgotten your iPhone passcode, try unlocking with Face ID. If unsuccessful and you have a backup on your MacBook, you can restore from there. If not, check for an iCloud backup. Continuous incorrect passcode attempts will disable your iPhone, so be cautious. Lastly, consider reaching out to Apple Support Tel.: 0800 6645 451 (DE) for guidance. Always ensure regular backups in the future to avoid potential data loss.
Unfortunately, Apple does not offer a direct way to recover the passcode via Apple ID for security reasons. But if you enter the wrong passcode too many times, you might see a message that says your device has been disabled. If you can't remember your passcode, you'll need to erase your iPhone, which deletes your data and settings.
Btw. For English speakers, we have a dedicated community right here: discussions.apple.com. Since your message is in English, we warmly invite you to join us in that community. 😉
Thank you!