[Machine] The Jews of Khaybar used to fight against the tribe of Ghatafan. And every time they clashed, the Jews of Khaybar would be defeated. So, the Jews sought help from Allah with this supplication: "O Allah, we ask You by the right of Muhammad, the unlettered Prophet whom You promised to send in the end of times, to grant us victory over them." Then, whenever they met the enemy, they would make this supplication and would defeat the tribe of Ghatafan.
But when the Prophet ﷺ was sent, they disbelieved in him. So Allah revealed the verse: "But they used to seek victory over the disbelievers before, [for the sake] of Muhammad." (Surah Al-Baqarah, 2:89).
The necessity led to the expulsion of the Prophet ﷺ from their interpretation of this verse, although it is a strange interpretation from his hadith. There is no need for that, as Abdullah (ibn Abbas) said: it is canceled and has no effect on the Prophet ﷺ .
كَانَتْ يَهُودُ خَيْبَرَ تُقَاتِلُ غَطَفَانَ فَكُلَّمَا الْتَقَوْا هُزِمَتْ يَهُودُ خَيْبَرَ فَعَاذَتِ الْيَهُودُ بِهَذَا الدُّعَاءِ اللَّهُمَّ إِنَّا نَسْأَلُكَ بِحَقِّ مُحَمَّدٍ النَّبِيِّ الْأُمِّيِّ الَّذِي وَعَدْتَنَا أَنْ تُخْرِجَهُ لَنَا فِي آخِرِ الزَّمَانِ إِلَّا نَصَرْتَنَا عَلَيْهِمْ قَالَ فَكَانُوا إِذَا الْتَقَوْا دَعَوْا بِهَذَا الدُّعَاءِ فَهَزَمُوا غَطَفَانَ فَلَمَّا بُعِثَ النَّبِيُّ ﷺ كَفَرُوا بِهِ فَأَنْزَلَ اللَّهُ {وَكَانُوا مِنْ قَبْلُ يَسْتَفْتِحُونَ} [البقرة 89] بِكَ يَا مُحَمَّدُ عَلَى الْكَافِرِينَ « » أَدَّتِ الضَّرُورَةُ إِلَى إِخْرَاجِهِ فِي التَّفْسِيرِ وَهُوَ غَرِيبٌ مِنْ حَدِيثِهِ لا ضرورة في ذلك أي لإخراجه فعبد الله متروك هالك