Hello hadimotahari,
go to Settings> Network and Internet> WI-FI, click on Manage known networks on the side, select and then remove all network profiles from the list. Reconnect to the hotspot by correctly re-entering the wi-fi password.
If you still can't connect, temporarily configure usb tethering on your phone, then connect it to your computer via the usb cable and check if you can access the internet in this way.
If via usb tethering works, reconfigure the hotspot on your phone again and try to connect to wi-fi again.