There isn’t any official method to do so, but I do have a trick which will show you the password. Follow the steps:

1. Connect to the WiFi.
2. Click on share password, it will show you a barcode. Take a Screenshot.
3. Use the inbuilt Mi scanner app. Select the screenshot from gallery and tap on password. It will show the password.

This method works on all android or ios phone that can show barcode to share wifi password.

Check the screenshots for details. Cheers!