Volume 3 · Book 34 · Hadith 316
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.
— Sahih Bukhari, Volume 3, Book 34: Sales and Trade, Hadith #316