Hi @Ahmed Essam,
Microsoft 365 and Office 365 provide a mail migration advisor to help you move mailboxes from your current on-premises Exchange server to Exchange Online in Microsoft 365 and Office 365 with automated tools and step-by-step guidance. Use the Microsoft 365 and Office 365 mail migration advisor | Microsoft Learn
Since you have Exchange 2016 server, if your on-premises Exchange organization has fewer than 2,000 mailboxes. you could use the cutover migration method.
Please note that if you have turned on directory synchronization, you need to turn it off before you can perform a cutover migration. You can do this by using PowerShell. For instructions, see Turn off directory synchronization.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.