To prevent your passwords from being hacked you should notice that:
Do not use the same password for multiple important accounts.
Do not use any dictionary word in your passwords.
Use a password that has at least 16 characters, use at least one number, one uppercase letter, one lowercase letter and one special symbol.
Do not use the names of your families, friends or pets in your passwords.
Do not let your Web browsers store your passwords, since all passwords saved in Web browsers can be revealed easily.
Do not log in on the computers of others, or when connected to a public Wi-Fi hotspot, Tor, free VPN or web proxy.
Do not send sensitive information online via unencrypted(HTTP or FTP) connections - messages in these connections can be sniffed with very little effort. Instead, you should use encrypted connections such as HTTPS, SFTP, whenever possible.
It's recommended to change your passwords every 10 weeks.
Turn on 2-step authentication whenever possible.
Do not store your critical passwords in the cloud.