First confirm the mailbox has an Exchange GUID
From ON PREM Exchange powershell:
Get-RemoteMailbox <alias of cloud mailbox to move> | Format-List ExchangeGUID
If it does not, fix per this article:
https://learn.microsoft.com/en-us/exchange/troubleshoot/move-mailboxes/migrationpermanentexception-when-moving-mailboxes
Then offboard per this article:
https://learn.microsoft.com/en-us/exchange/hybrid-deployment/move-mailboxes#move-exchange-online-mailboxes-to-the-on-premises-organization
or use Exchange Online PS:
$opcred = get-credential domain\domainadmin
Get-Mailbox -Identity username@contoso.com | New-MoveRequest -OutBound -RemoteTargetDatabase ‘Database01’ -RemoteHostName ‘hybrid.contoso.com’ -
RemoteCredential $opcred -TargetDeliveryDomain ‘contoso.com’