Language:
كتاب الجهاد والسير
56  
Fighting for the Cause of Allah (Jihaad)
(89)
Chapter: The armour of the Prophet saws
(89)
باب مَا قِيلَ فِي دِرْعِ النَّبِيِّ صلى الله عليه وسلم وَالْقَمِيصِ فِي الْحَرْبِ
Sahih al-Bukhari 2915

Narrated Ibn `Abbas:

The Prophet (ﷺ) , while in a tent (on the day of the battle of Badr) said, "O Allah! I ask you the fulfillment of Your Covenant and Promise. O Allah! If You wish (to destroy the believers) You will never be worshipped after today." Abu Bakr caught him by the hand and said, "This is sufficient, O Allah's Apostle! You have asked Allah pressingly." The Prophet (ﷺ) was clad in his armor at that time. He went out, saying to me: "There multitude will be put to flight and they will show their backs. Nay, but the Hour is their appointed time (for their full recompense) and that Hour will be more grievous and more bitter (than their worldly failure)." (54.45-46) Khalid said that was on the day of the battle of Badr.

حَدَّثَنِي مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا عَبْدُ الْوَهَّابِ، حَدَّثَنَا خَالِدٌ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم وَهْوَ فِي قُبَّةٍ ‏"‏ اللَّهُمَّ إِنِّي أَنْشُدُكَ عَهْدَكَ وَوَعْدَكَ، اللَّهُمَّ إِنْ شِئْتَ لَمْ تُعْبَدْ بَعْدَ الْيَوْمِ ‏"‏‏.‏ فَأَخَذَ أَبُو بَكْرٍ بِيَدِهِ فَقَالَ حَسْبُكَ يَا رَسُولَ اللَّهِ، فَقَدْ أَلْحَحْتَ عَلَى رَبِّكَ، وَهْوَ فِي الدِّرْعِ، فَخَرَجَ وَهْوَ يَقُولُ ‏{‏سَيُهْزَمُ الْجَمْعُ وَيُوَلُّونَ الدُّبُرَ * بَلِ السَّاعَةُ مَوْعِدُهُمْ وَالسَّاعَةُ أَدْهَى وَأَمَرُّ ‏}‏‏.‏ وَقَالَ وُهَيْبٌ حَدَّثَنَا خَالِدٌ يَوْمَ بَدْرٍ‏.‏
Reference : Sahih al-Bukhari 2915
In-book reference : Book 56, Hadith 128
USC-MSA web (English) reference : Vol. 4, Book 52, Hadith 164
  (deprecated numbering scheme)