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.
tirmidhi:3264ʿAbd b. Ḥumayd > Sulaymān b. Ḥarb > Ḥammād b. Salamah > Thābit > Anas

that eighty people swooped down from the mountain of At-Tan'im to kill the Messenger of Allah ﷺ during Salat As-Subh, but he captured them and (later) let them go. So Allah revealed the Ayah: And it is He Who has withheld their hands from you and your hands from them (48:24).  

Abū ʿĪsá said that this Ḥadīth is Ḥasan-Ṣaḥīḥ.
الترمذي:٣٢٦٤حَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ حَدَّثَنِي سُلَيْمَانُ بْنُ حَرْبٍ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ عَنْ أَنَسٍ

أَنَّ ثَمَانِينَ هَبَطُوا عَلَى رَسُولِ اللَّهِ ﷺ وَأَصْحَابِهِ مِنْ جَبَلِ التَّنْعِيمِ عِنْدَ صَلاَةِ الصُّبْحِ وَهُمْ يُرِيدُونَ أَنْ يَقْتُلُوهُ فَأُخِذُوا أَخْذًا فَأَعْتَقَهُمْ رَسُولُ اللَّهِ ﷺ فَأَنْزَلَ اللَّهُ ( هُوَ الَّذِي كَفَّ أَيْدِيَهُمْ عَنْكُمْ وَأَيْدِيَكُمْ عَنْهُمْ ) الآيَةَ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ

See similar narrations below:

Collected by Abū Dāwūd, Nasāʾī's Kubrá, Bayhaqī
abudawud:2688Mūsá b. Ismāʿīl > Ḥammād > Thābit > Anas

Anas said “Eighty Meccans came down from the mountain of Al Tan’im against the Prophet ﷺ and his Companions at the (time of the) dawn prayer to kill them. The Apostle of Allaah ﷺ took them captive without fighting and the Apostle of Allaah ﷺ set them free. Thereupon Allaah Most High sent down “He it is Who averted their hands from you and your hands from them in the valley of Makkah,” till the end of the verse.  

أبو داود:٢٦٨٨حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ قَالَ حَدَّثَنَا حَمَّادٌ قَالَ أَخْبَرَنَا ثَابِتٌ عَنْ أَنَسٍ

أَنَّ ثَمَانِينَ رَجُلاً مِنْ أَهْلِ مَكَّةَ هَبَطُوا عَلَى النَّبِيِّ ﷺ وَأَصْحَابِهِ مِنْ جِبَالِ التَّنْعِيمِ عِنْدَ صَلاَةِ الْفَجْرِ لِيَقْتُلُوهُمْ فَأَخَذَهُمْ رَسُولُ اللَّهِ ﷺ سَلَمًا فَأَعْتَقَهُمْ رَسُولُ اللَّهِ ﷺ فَأَنْزَلَ اللَّهُ ﷻ { وَهُوَ الَّذِي كَفَّ أَيْدِيَهُمْ عَنْكُمْ وَأَيْدِيَكُمْ عَنْهُمْ بِبَطْنِ مَكَّةَ } إِلَى آخِرِ الآيَةِ  

قَوْلُهُ تَعَالَى: {وَهُوَ الَّذِي كَفَّ أَيْدِيَهُمْ عَنْكُمْ وَأَيْدِيَكُمْ عَنْهُمْ} [الفتح: 24]

nasai-kubra:11446Isḥāq b. Ibrāhīm > ʿAffān > Ḥammād > Thābit > Anas

[Machine] Some people from the people of Makkah descended upon the Messenger of Allah ﷺ from the mountain of Tan'eem during the Fajr prayer. So the Messenger of Allah ﷺ took them and forgave them. And Allah revealed (the verse): "And it is He who withheld their hands from you and your hands from them" [Surah Al-Fath, verse 24].  

الكبرى للنسائي:١١٤٤٦أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ أَخْبَرَنَا عَفَّانُ حَدَّثَنَا حَمَّادٌ عَنْ ثَابِتٍ عَنْ أَنَسٍ

أَنَّ نَاسًا مِنْ أَهْلِ مَكَّةَ هَبَطُوا عَلَى رَسُولِ اللهِ ﷺ مِنْ جَبَلِ التَّنْعِيمِ عِنْدَ صَلَاةِ الْفَجْرِ فَأَخَذَهُمْ رَسُولُ اللهِ ﷺ فَعَفَا عَنْهُمْ فَأَنْزَلَ اللهُ ﷻ {وَهُوَ الَّذِي كَفَّ أَيْدِيَهُمْ عَنْكُمْ وَأَيْدِيَكُمْ عَنْهُمْ} [الفتح 24] الْآيَةَ  

nasai-kubra:8614Muḥammad b. Nāfiʿ > Bahz > Ḥammād b. Salamah > Thābit > Anas

[Machine] On the day of Hudaybiyah, eighty men from the people of Makkah descended upon the Prophet ﷺ from the mountain of Tan'im. They said, "We will capture Muhammad and his companions." The Prophet ﷺ greeted them peacefully and then pardoned them. Allah, the blessed and exalted, revealed the following verse, "And it is He who withheld their hands from you and your hands from them" [Surah Al-Fath, verse 24].  

الكبرى للنسائي:٨٦١٤أَخْبَرَنَا مُحَمَّدُ بْنُ نَافِعٍ قَالَ حَدَّثَنَا بَهْزٌ قَالَ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ قَالَ حَدَّثَنَا ثَابِتٌ عَنْ أَنَسٍ قَالَ

هَبَطَ عَلَى النَّبِيِّ ﷺ يَوْمَ الْحُدَيْبِيَةِ ثَمَانُونَ رَجُلًا مِنْ أَهْلِ مَكَّةَ مِنْ جَبَلِ التَّنْعِيمِ فَقَالُوا نَأْخُذُ مُحَمَّدًا وَأَصْحَابَهُ فَأَخَذَهُمُ النَّبِيُّ ﷺ سِلْمًا ثُمَّ عَفَا عَنْهُمْ فَأَنزَلَ اللهُ تَبَارَكَ وَتَعَالَى {وَهُوَ الَّذِي كَفَّ أَيْدِيَهُمْ عَنْكُمْ وَأَيْدِيَكُمْ عَنْهُمْ} [الفتح 24]  

bayhaqi:12832[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Muḥammad b. Isḥāq al-Ṣaghānī > Ḥajjāj b. Minhāl [Chain 2] Abū al-Ḥasan ʿAlī b. Muḥammad al-Muqriʾ > al-Ḥasan b. Muḥammad b. Isḥāq > Yūsuf b. Yaʿqūb al-Qāḍī > ʿAbd al-Wāḥid b. Ghiyāth > Ḥammād b. Salamah > Thābit al-Bunānī > Anas b. Mālik

Anas said “Eighty Meccans came down from the mountain of Al Tan’im against the Prophet ﷺ and his Companions at the (time of the) dawn prayer to kill them. The Apostle of Allaah ﷺ took them captive without fighting and the Apostle of Allaah ﷺ set them free. Thereupon Allaah Most High sent down “He it is Who averted their hands from you and your hands from them in the valley of Makkah,” till the end of the verse. (Using translation from Abū Dāʾūd 2688)   

البيهقي:١٢٨٣٢أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا مُحَمَّدُ بْنُ إِسْحَاقَ الصَّغَانِيُّ ثنا حَجَّاجُ بْنُ مِنْهَالٍ ح وَأَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدٍ الْمُقْرِئُ أنا الْحَسَنُ بْنُ مُحَمَّدِ بْنِ إِسْحَاقَ ثنا يُوسُفُ بْنُ يَعْقُوبَ الْقَاضِي ثنا عَبْدُ الْوَاحِدِ بْنُ غِيَاثٍ قَالَا ثنا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ الْبُنَانِيِّ عَنْ أَنَسِ بْنِ مَالِكٍ

أَنَّ ثَمَانِينَ رَجُلًا مِنْ أَهْلِ مَكَّةَ هَبَطُوا عَلَى رَسُولِ اللهِ ﷺ وَأَصْحَابِهِ مِنْ جَبَلِ التَّنْعِيمِ عِنْدَ صَلَاةِ الْفَجْرِ لِيَقْتُلُوهُمْ فَأَخَذَهُمْ رَسُولُ اللهِ ﷺ سِلْمًا فَأَعْتَقَهُمْ فَأَنْزَلَ اللهُ ﷻ {وَهُوَ الَّذِي كَفَّ أَيْدِيَهُمْ عَنْكُمْ وَأَيْدِيَكُمْ عَنْهُمْ} [الفتح 24] إِلَى آخِرِ الْآيَةِ  

أَخْرَجَهُ مُسْلِمٌ فِي الصَّحِيحِ مِنْ حَدِيثِ حَمَّادِ بْنِ سَلَمَةَ