Sahih al-Bukhari, Book 78, Hadith 172 (Bukhari 5913)

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."