Language:
كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(56)
Chapter: The Ghazwa of At-Taif
(56)
باب غَزْوَةُ الطَّائِفِ فِي شَوَّالٍ سَنَةَ ثَمَانٍ
Sahih al-Bukhari 4326, 4327

Narrated Abu `Uthman:

I heard from Sa`d, the first man who has thrown an arrow in Allah's Cause, and from Abu Bakra who jumped over the wall of the Ta'if Fort along with a few persons and came to the Prophet. They both said, "We heard the Prophet (ﷺ) saying, " If somebody claims to be the son of somebody other than his father knowingly, he will be denied Paradise (i.e. he will not enter Paradise).' " Narrated Ma`mar from `Asim from Abu Al-`Aliya or Abu `Uthman An-Nahdi who said. "I heard Sa`d and Abu Bakra narrating from the Prophet." `Asim said, "I said (to him), 'Very trustworthy persons have narrated to you.' He said, 'Yes, one of them was the first to throw an arrow in Allah's Cause and the other came to the Prophet (ﷺ) in a group of thirty-three persons from Ta'if.'

حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا غُنْدَرٌ، حَدَّثَنَا شُعْبَةُ، عَنْ عَاصِمٍ، قَالَ سَمِعْتُ أَبَا عُثْمَانَ، قَالَ سَمِعْتُ سَعْدًا ـ وَهْوَ أَوَّلُ مَنْ رَمَى بِسَهْمٍ فِي سَبِيلِ اللَّهِ ـ وَأَبَا بَكْرَةَ ـ وَكَانَ تَسَوَّرَ حِصْنَ الطَّائِفِ فِي أُنَاسٍ ـ فَجَاءَ إِلَى النَّبِيِّ صلى الله عليه وسلم فَقَالاَ سَمِعْنَا النَّبِيَّ صلى الله عليه وسلم يَقُولُ ‏ "‏ مَنِ ادَّعَى إِلَى غَيْرِ أَبِيهِ وَهْوَ يَعْلَمُ فَالْجَنَّةُ عَلَيْهِ حَرَامٌ ‏"‏‏.‏ وَقَالَ هِشَامٌ وَأَخْبَرَنَا مَعْمَرٌ، عَنْ عَاصِمٍ، عَنْ أَبِي الْعَالِيَةِ، أَوْ أَبِي عُثْمَانَ النَّهْدِيِّ قَالَ سَمِعْتُ سَعْدًا، وَأَبَا، بَكْرَةَ عَنِ النَّبِيِّ صلى الله عليه وسلم‏.‏ قَالَ عَاصِمٌ قُلْتُ لَقَدْ شَهِدَ عِنْدَكَ رَجُلاَنِ حَسْبُكَ بِهِمَا‏.‏ قَالَ أَجَلْ أَمَّا أَحَدُهُمَا فَأَوَّلُ مَنْ رَمَى بِسَهْمٍ فِي سَبِيلِ اللَّهِ، وَأَمَّا الآخَرُ فَنَزَلَ إِلَى النَّبِيِّ صلى الله عليه وسلم ثَالِثَ ثَلاَثَةٍ وَعِشْرِينَ مِنَ الطَّائِفِ‏.‏
Reference : Sahih al-Bukhari 4326, 4327
In-book reference : Book 64, Hadith 356
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 616
  (deprecated numbering scheme)