WhatsApp is today making its new two-step verification feature available to all. Once enabled, WhatsApp will require you to enter a six-digit passcode when you attempt to verify your phone number.
To protect WhatsApp from hacking, enable 2-step verification and avoid sharing OTPs/PINs. Periodically check your linked devices and log out any unknown devices. Avoid clicking on suspicious links.