iCloud I think is the main asset that distinguishes Apple from other manufacturers of devices and software. The owners of iPhone, iPad, Mac, MacBook, Apple Watch can keep all their syncornized devices through the iCloud account. Apple Id. In this tutorial you will learn how to see the passwords of the Wi-Fi networks you have been connected to (or are connected).
In addition to documents, photos and video, messages, mail, notes, files and more, in iCloud are also saved the passwords of the Wi-Fi networks that we connected with a device. So if we go to a hotel and connect from the iPhone to a password wireless network, both iPad and M/IMACBook will automatically connect to that network without having to enter the password. The Password network was saved in iCloud with the first connection of iPhone. The condition is that on all devices we have the same Apple ID account and have the synchronization of iCloud.
In a recent tutorial I showed How can you see the Wi-Fi passwords of connections saved on iPhone or iPad. This tutorial will help you how to find and how you can see from MacBook the passwords of the Wi-Fi networks you have been connected from iPhone or iPad. Of course, see also the passwords of the Wi-Fi networks to which MacBook or Mac has been or is connected.
How to see from MacBook the passwords of Wi-Fi networks to which it is or has been connected
Apple has developed Keychain Access As a password manager, certified and credential. All authentication data on websites, Wi-Fi networks and other secure user and password connections are saved in this Password Manager. In Keychain Access The credentials in iCloud are synchronized. In other words, if on iPhone or iPad you connect to a wireless network, in Keychain Access on Mac you will find the password to that Wi-Fi network.
open Keychain Access On Mac, select iCloud on the left bar, then in the search field you write the name of the Wi-Fi network for which you want to find out the password.
In my scenario, I want to find out the password to connect to a Wi-Fi network: Apple Network 5GHz.

Double -click on the network name for which we want to see the password, then in the next Bifam dialog box “Show password:”.

A dialog box will be opened in which you have to enter the password user user's password.

Click “Ok” And the password of the Wi-Fi network will be visible and can be copied.

As I said, in Keychain Access you will find including the passwords of the Wi-Fi networks that you have connected from the iPhone or iPad. Also in Keychain Access you can find the credentials used to authenticate on online stores or websites. The tutorial is made on Macos Ventura.
 
			