Take a look at this post:
Static IP address templates for dhcpcd.conf
What’s your exact problem Mohammed? The easiest way is to connect to an Ethernet cable and then set the WiFi password with an SSH connection.
The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software