how to find my iphone setup apple ID and password

I want to restore my iphone. When i connect it to apple support it asks for the phone's set up apple ID and password but I do not have it. Please tell me how to find it.
Ask the owner of the phone.
If you are the owner of the phone, ask the person who helped you set it up.
Use this: https://iforgot.apple.com

Original thread: https://forums.imore.com/threads/how-to-find-my-iphone-setup-apple-id-and-password.386299/