Step 1. First, head over to Settings.
Step 2. Now, look for Wi-Fi Settings and tap on it.
Step 3. After that, you will see all the current Wi-Fi networks.
Step 4. Now, select the Wi-Fi Network for which you want to view the password.
Step 5. On the next step, you will get a few options including Share WiFi.
Step 6. After that, click on Share WiFi.
Step 7. After tapping on the Share Wifi, you will get the password below the QR Code.