You have lots of possible options...
If you restored from a backup, then a login password would likely be exactly the same as the Mac your used to make that backup. (There's no need to make a new password, when a password already is in place!
If, on the other hand, you had a clean install, beginning to setup a new Mac, and you didn't get that far to set up a new password, but one is there, unbeknownst to you - then I would suggest that you boot to your recovery system, Restart, holding Command+R, then erase the system partition, and finally reinstall macOS. (Better to start out completely fresh, than be half-way there with an unknown password.
And, if you don't want to erase and start over, you can also reset the user password, by booting to the recovery system, then opening Terminal from the Utilities menu.
Type resetpassword -- press enter, find your user from the dropdown, and make a new password for your user account.
Finally, if you can't get to ANY of this --- What does the screen look like that asks for a password? Does it have a blank box with a padlock?