[Machine] He said, when this verse was revealed: "Indeed, We have granted you, [O Muhammad], a clear conquest (48:1)," the companions of the Messenger of Allah, peace and blessings be upon him, said to him: "Congratulations and good tidings to you, O Messenger of Allah! What is for us?" Then this verse was revealed: "That He may admit the believing men and the believing women to gardens beneath which rivers flow to abide therein eternally and remove from them their misdeeds (48:5)." Shu'bah said that Qatadah mentioned this hadith in his stories from Anas ibn Malik who said: "This verse was revealed when the Messenger of Allah, peace and blessings be upon him, returned from Hudaybiyah: Indeed, We have granted you, [O Muhammad], a clear conquest to forgive you your previous sins and that which will follow (48:1)." Then he said: "The companions of the Messenger of Allah, peace and blessings be upon him, said to him: 'Congratulations to you for this hadith.'" I thought that the entire narration was from Anas, so I went to Kufa and narrated it from Qatadah, from Anas. Then I returned and met Qatadah in a crowd. And he said the beginning of it is from Anas and the end is from Ikrimah. So I went to them in Kufa and informed them of that.
أَنَّهُ قَالَ لَمَّا نَزَلَتْ هَذِهِ الْآيَةُ {إِنَّا فَتَحْنَا لَكَ فَتْحًا مُبِينًا لِيَغْفِرَ لَكَ اللهُ مَا تَقَدَّمَ مِنْ ذَنْبِكَ وَمَا تَأَخَّرَ} [الفتح 2] قَالَ أَصْحَابُ رَسُولِ اللهِ ﷺ هَنِيئًا مَرِيئًا لَكَ يَا رَسُولَ اللهِ فَمَا لَنَا؟ فَنَزَلَتْ هَذِهِ الْآيَةُ {لِيُدْخِلَ الْمُؤْمِنِينَ وَالْمُؤْمِنَاتِ جَنَّاتٍ تَجْرِي مِنْ تَحْتِهَا الْأَنْهَارُ خَالِدِينَ فِيهَا وَيُكَفِّرَ عَنْهُمْ سَيِّئَاتِهِمْ} [الفتح 5] قَالَ شُعْبَةُ كَانَ قَتَادَةُ يَذْكُرُ هَذَا الْحَدِيثَ فِي قَصَصِهِ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ نَزَلَتْ هَذِهِ الْآيَةُ لَمَّا رَجَعَ رَسُولُ اللهِ ﷺ مِنَ الْحُدَيْبِيَةِ {إِنَّا فَتَحْنَا لَكَ فَتْحًا مُبِينًا لِيَغْفِرَ لَكَ اللهُ مَا تَقَدَّمَ مِنْ ذَنْبِكَ وَمَا تَأَخَّرَ} [الفتح 1] ثُمَّ يَقُولُ قَالَ أَصْحَابُ رَسُولِ اللهِ ﷺ هَنِيئًا لَكَ هَذَا الْحَدِيثُ قَالَ فَظَنَنْتُ أَنَّهُ كُلُّهُ عَنْ أَنَسٍ فَأَتَيْتُ الْكُوفَةَ فَحَدَّثْتُ عَنْ قَتَادَةَ عَنْ أَنَسٍ ثُمَّ رَجَعْتُ فَلَقِيتُ قَتَادَةَ بِوَاسِطٍ فَإِذَا هُوَ يَقُولُ أَوَّلُهُ عَنْ أَنَسٍ وَآخِرُهُ عَنْ عِكْرِمَةَ قَالَ فَأَتَيْتُهُمْ بِالْكُوفَةِ فَأَخْبَرْتُهُمْ بِذَلِكَ