Text and email about Apple ID
I received a text message with a 6 digit Apple ID code at 4 am that I was not expecting and an email stating that I had made a request to reset my password or unlock my account. If an update took place overnight on my MacBook or iPhone would I have received such a message or is this a scam ?