From Sahih Muslim (Hadith 4654):
It has been narrated on the authority of Jundub b. Sufyan who said:A finger of the Messenger of Allah (ﷺ) was wounded in one of the encounters He said: Thou art just a little finger which has bled, and what thou hast experienced is in the cause of Allah
Reference: Muslim 4654