ʿUmar bin Al-Khattab expelled all the Jews and Christians from the land of Hijaz. Messenger of Allah ﷺ after conquering Khaibar, thought of expelling the Jews from the land which, after he conquered it belonged to Allah, Messenger of Allah ﷺ and the Muslims. But the Jews requested Messenger of Allah ﷺ to leave them there on the condition that they would do the labor and get half of the fruits (the land would yield). Messenger of Allah ﷺ said, "We shall keep you on these terms as long as we wish." Thus they stayed till the time of ʿUmar's Caliphate when he expelled them to Taima and Ariha.
أَنَّ عُمَرَ بْنَ الْخَطَّابِ أَجْلَى الْيَهُودَ وَالنَّصَارَى مِنْ أَرْضِ الْحِجَازِ وَكَانَ رَسُولُ اللَّهِ ﷺ لَمَّا ظَهَرَ عَلَى أَهْلِ خَيْبَرَ أَرَادَ أَنْ يُخْرِجَ الْيَهُودَ مِنْهَا وَكَانَتِ الأَرْضُ لَمَّا ظَهَرَ عَلَيْهَا لِلْيَهُودِ وَلِلرَّسُولِ وَلِلْمُسْلِمِينَ فَسَأَلَ الْيَهُودُ رَسُولَ اللَّهِ ﷺ أَنْ يَتْرُكَهُمْ عَلَى أَنْ يَكْفُوا الْعَمَلَ وَلَهُمْ نِصْفُ الثَّمَرِ فَقَالَ رَسُولُ اللَّهِ ﷺ نُقِرُّكُمْ عَلَى ذَلِكَ مَا شِئْنَا فَأُقِرُّوا حَتَّى أَجْلاَهُمْ عُمَرُ فِي إِمَارَتِهِ إِلَى تَيْمَاءَ وَأَرِيحَا