كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(54)
Chapter: “…and on the day of Hunain when you rejoiced at your great number….”
(54)
بَابُ قَوْلِ اللَّهِ تَعَالَى: {وَيَوْمَ حُنَيْنٍ إِذْ أَعْجَبَتْكُمْ كَثْرَتُكُمْ فَلَمْ تُغْنِ عَنْكُمْ شَيْئًا وَضَاقَتْ عَلَيْكُمُ الأَرْضُ بِمَا رَحُبَتْ ثُمَّ وَلَّيْتُمْ مُدْبِرِينَ ثُمَّ أَنْزَلَ اللَّهُ سَكِينَتَهُ} إِلَى قَوْلِهِ: {غَفُورٌ رَحِيمٌ}
Sahih al-Bukhari 4316

Narrated Abu 'Is-haq:

Al-Bara' was asked while I was listening, "Did you flee (before the enemy) along with the Prophet (ﷺ) on the day of (the battle of) Hunain?" He replied, "As for the Prophet, he did not (flee). The enemy were good archers and the Prophet (ﷺ) was saying, "I am the Prophet (ﷺ) undoubtedly; I am the son of `Abdul Muttalib."

حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي إِسْحَاقَ، قِيلَ لِلْبَرَاءِ وَأَنَا أَسْمَعُ، أَوَلَّيْتُمْ مَعَ النَّبِيِّ صلى الله عليه وسلم يَوْمَ حُنَيْنٍ فَقَالَ أَمَّا النَّبِيُّ صلى الله عليه وسلم فَلاَ، كَانُوا رُمَاةً فَقَالَ ‏ "‏ أَنَا النَّبِيُّ لاَ كَذِبْ أَنَا ابْنُ عَبْدِ الْمُطَّلِبْ ‏"‏‏.‏
Reference : Sahih al-Bukhari 4316
In-book reference : Book 64, Hadith 347
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 606
  (deprecated numbering scheme)