How to disable wifi password sharing on iOS 11?
This happens because someone, that also is in your contact list, tries to enter a password for the WiFi network your device is connected to. If possible, find the MacBook Pro it wants to share the WiFi code with, and check if the MacBook is trying to connect to the WiFi network. If it is, power the MacBook off or type in the WiFi password on the MacBook.

Let me know if you have any questions or if it worked :)