Ash-Shama'il Al-Muhammadiyah, Book 37, Hadith 243 (In-Book)

Jundub bin Sufyaan Radiyallahu 'Anhu relates: "Once a stone hit the Mubaarak fingers of Rasulullah Sallallahu'Alayhi Wasallam and injured them, they became covered in blood. Rasulullah Sallallahu'Alayhi Wasallam thereupon recited this couplet: 'You are but a finger, no damage has overcome you, besides covering you in blood. This is not fruitless, for reward has been obtained in the path of Allah'".

حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، قَالَ‏:‏ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، قَالَ‏:‏ حَدَّثَنَا شُعْبَةُ، عَنِ الأَسْوَدِ بْنِ قَيْسٍ، عَنْ جُنْدُبِ بْنِ سُفْيَانَ الْبَجَلِيِّ، قَالَ‏:‏ أَصَابَ حَجَرٌ أُصْبُعَ رَسُولِ اللهِ صلى الله عليه وسلم فَدَمِيَتْ، فَقَالَ‏:‏ هَلْ أَنْتِ إِلا أُصْبُعٌ دَمِيتِ وَفِي سَبِيلِ اللهِ مَا لَقِيتِ‏.‏

also referenced under: Book 36, Hadith 233 (English)