You might want to verify that you really have to deploy on-premises servers. Instead, consider solutions such as Azure Arc.
But if you really have no choice, then refer to https://learn.microsoft.com/en-us/answers/questions/1044179/users-sync-from-azure-ad-to-onpremise-ad
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin