ʿUmar expelled the Jews and the Christians from Hijaz. When Messenger of Allah ﷺ had conquered Khaibar, he wanted to expel the Jews from it as its land became the property of Allah, His Apostle, and the Muslims. Messenger of Allah ﷺ intended to expel the Jews but they requested him to let them stay there on the condition that they would do the labor and get half of the fruits. Messenger of Allah ﷺ told them, "We will let you stay on thus condition, as long as we wish." So, they (i.e. Jews) kept on living there until ʿUmar forced them to go towards Taima' and Ariha'.
أَنَّ عُمَرَ بْنَ الْخَطَّابِ ؓ أَجْلَى الْيَهُودَ وَالنَّصَارَى مِنْ أَرْضِ الْحِجَازِ وَكَانَ رَسُولُ اللَّهِ ﷺ لَمَّا ظَهَرَ عَلَى خَيْبَرَ أَرَادَ إِخْرَاجَ الْيَهُودِ مِنْهَا وَكَانَتِ الأَرْضُ حِينَ ظَهَرَ عَلَيْهَا لِلَّهِ وَلِرَسُولِهِ ﷺ وَلِلْمُسْلِمِينَ وَأَرَادَ إِخْرَاجَ الْيَهُودِ مِنْهَا فَسَأَلَتِ الْيَهُودُ رَسُولَ اللَّهِ ﷺ لِيُقِرَّهُمْ بِهَا أَنْ يَكْفُوا عَمَلَهَا وَلَهُمْ نِصْفُ الثَّمَرِ فَقَالَ لَهُمْ رَسُولُ اللَّهِ ﷺ: «نُقِرُّكُمْ بِهَا عَلَى ذَلِكَ مَا شِئْنَا۔» فَقَرُّوا بِهَا حَتَّى أَجْلاَهُمْ عُمَرُ إِلَى تَيْمَاءَ وَأَرِيحَاءَ۔