صحيح البخاري
From Sahih Bukhari (Hadith 2103):
Narrated Ibn `Abbas:Once the Prophet (ﷺ) got his blood out (medically) and paid that person who had done it. If it had been illegal, the Prophet (ﷺ) would not have paid him
Reference: Bukhari 2103