Language:
كتاب الأدب
78  
Good Manners and Form (Al-Adab)
(27)
Chapter: Being merciful to the people and to the animals
(27)
باب رَحْمَةِ النَّاسِ وَالْبَهَائِمِ
Sahih al-Bukhari 6010

Narrated Abu Huraira:

Allah's Messenger (ﷺ) stood up for the prayer and we too stood up along with him. Then a bedouin shouted while offering prayer. "O Allah! Bestow Your Mercy on me and Muhammad only and do not bestow it on anybody else along with us." When the Prophet (ﷺ) had finished his prayer with Taslim, he said to the Bedouin, "You have limited (narrowed) a very vast (thing)," meaning Allah's Mercy.

حَدَّثَنَا أَبُو الْيَمَانِ، أَخْبَرَنَا شُعَيْبٌ، عَنِ الزُّهْرِيِّ، قَالَ أَخْبَرَنِي أَبُو سَلَمَةَ بْنُ عَبْدِ الرَّحْمَنِ، أَنَّ أَبَا هُرَيْرَةَ، قَالَ قَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم فِي صَلاَةٍ وَقُمْنَا مَعَهُ، فَقَالَ أَعْرَابِيٌّ وَهْوَ فِي الصَّلاَةِ اللَّهُمَّ ارْحَمْنِي وَمُحَمَّدًا، وَلاَ تَرْحَمْ مَعَنَا أَحَدًا‏.‏ فَلَمَّا سَلَّمَ النَّبِيُّ صلى الله عليه وسلم قَالَ لِلأَعْرَابِيِّ ‏ "‏ لَقَدْ حَجَّرْتَ وَاسِعًا ‏"‏‏.‏ يُرِيدُ رَحْمَةَ اللَّهِ‏.‏
Reference : Sahih al-Bukhari 6010
In-book reference : Book 78, Hadith 41
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 39
  (deprecated numbering scheme)