Dear Gale L,
Thank you for reaching out to us here in the Microsoft Community.
After reading it, I can confirm these are legitimate emails from Microsoft. Someone was trying to login a Microsoft account associated with your email account and request verification codes, that is why you receive these emails.
Kindly refer to Can I trust the emails I receive from the Microsoft account team? - Microsoft Support. If you get an email from Microsoft account team and the email address domain is @accountprotection.microsoft.com, it is safe to trust the message and open it.
Please note it is probably that your email account has been connected to the Microsoft account mentioned in the email, if you don't remember clearly, you can use this link to know if there is any Microsoft account associated with your current email address.
Forgotten your Microsoft account username - Microsoft Support.
If you are in need to protect the Microsoft account from being hacked, you can refer to the following links to improve the security of your account:
How to help keep your Microsoft account safe and secure - Microsoft Support
I hope my suggestion is helpful to you.
Feel free to contact me if there are any further updates on this issue, I am here to help you further if needed :)
Best Wishes,
Stan.L - MSFT | Microsoft Community Support Specialist