Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:1278ʿAlī b. Ḥujr > Ismāʿīl b. Jaʿfar > Ḥumayd > Suʾil Anas > Kasb al-Ḥajjām

"The Messenger of Allah ﷺ was cupped. Abu Talhah did the cupping. So he ordered that he be given two Sa' of food, and he spoke to his masters to reduce his taxes. He said: 'The most virtuous of what you treat with is cupping.' Or, he said: 'The best of your treatments is cupping.'" [He said:] There are narrations on this topic from 'Ali, Ibn 'Abbas, and Ibn 'Umar.  

[Abu 'Eisa said:] The Hadith of Anas is a Hasan Sahih. Some of the people of knowledge among the Companions of the Prophet ﷺ, and others permitted paying the cupper. This is the view of Ash-Shafi'i.
الترمذي:١٢٧٨حَدَّثَنَا عَلِيُّ بْنُ حُجْرٍ أَخْبَرَنَا إِسْمَاعِيلُ بْنُ جَعْفَرٍ عَنْ حُمَيْدٍ قَالَ سُئِلَ أَنَسٌ عَنْ كَسْبِ الْحَجَّامِ فَقَالَ

أَنَسٌ احْتَجَمَ رَسُولُ اللَّهِ ﷺ وَحَجَمَهُ أَبُو طَيْبَةَ فَأَمَرَ لَهُ بِصَاعَيْنِ مِنْ طَعَامٍ وَكَلَّمَ أَهْلَهُ فَوَضَعُوا عَنْهُ مِنْ خَرَاجِهِ وَقَالَ إِنَّ أَفْضَلَ مَا تَدَاوَيْتُمْ بِهِ الْحِجَامَةُ أَوْ إِنَّ مِنْ أَمْثَلِ دَوَائِكُمُ الْحِجَامَةَ قَالَ وَفِي الْبَابِ عَنْ عَلِيٍّ وَابْنِ عَبَّاسٍ وَابْنِ عُمَرَ  

قَالَ أَبُو عِيسَى حَدِيثُ أَنَسٍ حَدِيثٌ حَسَنٌ صَحِيحٌ وَقَدْ رَخَّصَ بَعْضُ أَهْلِ الْعِلْمِ مِنْ أَصْحَابِ النَّبِيِّ ﷺ وَغَيْرِهِمْ فِي كَسْبِ الْحَجَّامِ وَهُوَ قَوْلُ الشَّافِعِيِّ

See similar narrations below:

Collected by Muslim
muslim:1577aYaḥyá b. Ayyūb And Qutaybah b. Saʿīd Waʿalī b. Ḥujr > Ismāʿīl Yaʿnūn Ibn Jaʿfar > Ḥumayd > Suʾil Anas b. Mālik > Kasb al-Ḥajjām

Messenger of Allah ﷺ got himself cupped. His cupper was Abu Taiba and he (the Holy Prophet) commanded to give him two sa's of corn. He (the Holy Prophet) talked with the members of his family and they lightened the burden of Kharaj (tax) from him (i. e. they made remis- sion in the charges of their own accord). He (Allah's Apostle) said: The best (treat- ment) which you take is cupping, or it is the best of your treatments.  

مسلم:١٥٧٧aحَدَّثَنَا يَحْيَى بْنُ أَيُّوبَ وَقُتَيْبَةُ بْنُ سَعِيدٍ وَعَلِيُّ بْنُ حُجْرٍ قَالُوا حَدَّثَنَا إِسْمَاعِيلُ يَعْنُونَ ابْنَ جَعْفَرٍ عَنْ حُمَيْدٍ قَالَ سُئِلَ أَنَسُ بْنُ مَالِكٍ عَنْ كَسْبِ الْحَجَّامِ فَقَالَ

احْتَجَمَ رَسُولُ اللَّهِ ﷺ حَجَمَهُ أَبُو طَيْبَةَ فَأَمَرَ لَهُ بِصَاعَيْنِ مِنْ طَعَامٍ وَكَلَّمَ أَهْلَهُ فَوَضَعُوا عَنْهُ مِنْ خَرَاجِهِ وَقَالَ إِنَّ أَفْضَلَ مَا تَدَاوَيْتُمْ بِهِ الْحِجَامَةُ أَوْ هُوَ مِنْ أَمْثَلِ دَوَائِكُمْ