An unexpected WhatsApp verification code does not by itself prove that someone took over your account.
Do not share the code with anyone who contacts you.
Open WhatsApp directly and review linked devices and security settings.
Enable two-step verification and contact your mobile provider if you also experience unexpected loss of cellular service.