To transfer the domain, you need to sign into the admin portal with a Global Admin account and go to Settings > Domains > Check Health > Transfer Domain.
Note that you cannot transfer a Microsoft 365 domain to another registrar for 60 days after you purchase the domain from Microsoft.
I've added the Microsoft 365 tag to this thread since this is less Entra-related.
If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar information.