Forgot Passcode on iphone without sim card
I have an extra iphone without sim card that I use as extra to save the battery on my real phone, but recently I forgot the passcode and all it shows is Iphone Unavailable-Emergency How can i restore the passcode?
iPhone 7, iOS 15