You should also thoroughly check the request to transfer money. You can do this by contacting the person or company in a separate way. For example, simply give them a call. This way you can make sure that the message is genuine. Be skeptical if you are told that a call is not possible.
The type of scam described here is also known as phishing. This involves sending genuine-looking messages in the form of emails, text messages or chat messages to certain people in order to steal login details or bank details, for example.
Perpetrators sometimes try to enrich their messages with real information about the target person to make them appear more genuine. This data can come from data leaks from various platforms. It also happens that supposedly trustworthy accounts of friends or family are misused to persuade you to take action. For important matters, always contact the person or company again using a different method!