[Machine] It was revealed to the Prophet ﷺ upon his return from Hudaybiyah, and his companions were mixed with sadness and gloom as there was a barrier between them and their rituals. They sacrificed the animals in Hudaybiyah, "Indeed, We have granted you, [O Muhammad], a clear conquest." (Surah Al-Fath, verse 1) until his statement, "Straight Path." (Surah An-Nisa, verse 68). He said, "Indeed, two verses were revealed to me that are dearer to me than the entire world." When he recited them, a man said, "Congratulations, O Prophet of Allah! Allah has made clear to you what He wills for you. So what will He do with us?" So Allah revealed the verse that follows, "That Allah may admit the believing men and the believing women to Gardens beneath which rivers flow." (Surah Al-Fath, verse 5), until the end of the verse.
أَنَّهَا نَزَلَتْ عَلَى النَّبِيِّ ﷺ مَرْجِعَهُ مِنَ الْحُدَيْبِيَةِ وَأَصْحَابُهُ مُخَالِطُونَ الْحُزْنَ وَالْكَآبَةَ وَقَدْ حِيلَ بَيْنَهُمْ وَبَيْنَ مَنَاسِكِهِمْ وَنَحَرُوا الْهَدْيَ بِالْحُدَيْبِيَةِ {إِنَّا فَتَحْنَا لَكَ فَتْحًا مُبِينًا} [الفتح 1] إِلَى قَوْلِهِ {صِرَاطًا مُسْتَقِيمًا} [النساء 68] قَالَ لَقَدْ أُنْزِلَتْ عَلَيَّ آيَتَانِ هُمَا أَحَبُّ إِلَيَّ مِنَ الدُّنْيَا جَمِيعًا قَالَ فَلَمَّا تَلَاهُمَا قَالَ رَجُلٌ هَنِيئًا مَرِيئًا يَا نَبِيَّ اللهِ قَدْ بَيَّنَ اللهُ لَكَ مَا يَفْعَلُ بِكَ فَمَا يَفْعَلُ بِنَا فَأَنْزَلَ اللهُ ﷻ الْآيَةَ الَّتِي بَعْدَهَا {لِيُدْخِلَ الْمُؤْمِنِينَ وَالْمُؤْمِنَاتِ جَنَّاتٍ تَجْرِي مِنْ تَحْتِهَا الْأَنْهَارُ} [الفتح 5] حَتَّى خَتَمَ الْآيَةَ