Locating A WiFi Network Password Within OS X That Has Been Saved On My Mac?
If you have saved it previously, open Keychain Access (located in /Applications/Utilities or via Spotlight) and search for the wifi network name.

If you have found it, check the lowest checkbox to reveal the password. You need your login password to do so.