(90) باب مَا يَجُوزُ مِنَ الشِّعْرِ وَالرَّجَزِ وَالْحُدَاءِ وَمَا يُكْرَهُ مِنْهُ
Narrated Jundub:
While the Prophet (ﷺ) was walking, a stone hit his foot and stumbled and his toe was injured. He then (quoting a poetic verse) said, "You are not more than a toe which has been bathed in blood in Allah's Cause."
Reference: Sahih al-Bukhari 6146
In-book reference: Book 78, Hadith 172
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 73, Hadith 167