Recover forgotten WiFi password
"after reset my device 'view saved wifi passwords on the iPhone' " answers your question I think? Do you have a mac that's connected to the same network? Then you can retrieve the password in the Keychain of the computer. (analogue for Windows systems)