On an iPhone, head to Settings then ‘WiFi’. Tap the little information ‘i’ next to the WiFi network, then tap ‘Password’. You’ll need to use Face ID or Touch ID to reveal the password.