Umar bin Khattab expelled the Jews and Christians from the land of Hijaz. When the Messenger of Allah ﷺ had conquered Khaybar, he intended to expel the Jews from it, for the land, once he had conquered it, belonged to Allah, His Messenger, and the Muslims. He intended to drive the Jews out, but they asked the Messenger of Allah ﷺ to let them remain there in exchange for tending the land, with half of the produce going to them.The Messenger of Allah ﷺ said, "We will let you remain on those terms for as long as we wish."So they remained there until Umar expelled them to Tayma and Ariha.
أن عمر بن الخطاب أجلى اليهود والنصارى من أرض الحجاز، وكان رسول الله ﷺ، لما ظهر على خيبر، أراد إخراج اليهود منها، وكانت الأرض حين ظهر عليها لله ولرسوله وللمسلمين، وأراد إخراج اليهود منها، فسألت اليهود رسول الله ﷺ ليقرهم بها أن يكفوا عملها، ولهم نصف الثمر، فقال رسول الله ﷺ: نقركم بها على ذلك ما شئنا. فقروا بها حتى أجلاهم عمر إلى تيماء وأريحاء.
Bukhari narrated it in "Farming and Sharecropping" (2338) and Muslim in "Sharecropping" (6:1551), both from the hadith of Abdul-Razzaq, who said, Ibn Jurayj informed us, Musa bin Uqba told me, from Nafi, from Ibn Umar, who mentioned it.