Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
hakim:3042al-Shaykh Abū Bakr b. Isḥāq > Muḥammad b. Ayyūb > Yūsuf b. Mūsá > ʿAbd al-Malik b. Hārūn b. > Tarah from his father from his grandfather > Saʿīd b. Jubayr > Ibn ʿAbbās > Kānat Yahūd

[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] بِكَ يَا مُحَمَّدُ عَلَى الْكَافِرِينَ « » أَدَّتِ الضَّرُورَةُ إِلَى إِخْرَاجِهِ فِي التَّفْسِيرِ وَهُوَ غَرِيبٌ مِنْ حَدِيثِهِ لا ضرورة في ذلك أي لإخراجه فعبد الله متروك هالك