صحيح البخاري Sahih Bukhari كتاب الصوم The Book of As-Saum (The Fasting).
بَابُ الْحِجَامَةِ وَالْقَيْءِ لِلصَّائِمِ:

(32) Chapter. Cupping (letting out blood medically) and vomiting of a person observing Saum (fast).

3 hadith
Hadith 1938
حَدَّثَنَا مُعَلَّى بْنُ أَسَدٍ ، حَدَّثَنَا وُهَيْبٌ ، عَنْ أَيُّوبَ ، عَنْ عِكْرِمَةَ ، عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُ ، " أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ احْتَجَمَ وَهُوَ مُحْرِمٌ ، وَاحْتَجَمَ وَهُوَ صَائِمٌ " .
Narrated Ibn `Abbas: The Prophet was cupped while he was in the state of lhram, and also while he was observing a fast.
Hadith Reference Sahih Bukhari / The Book of As-Saum (The Fasting). / Hadith: 1938
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 1939
حَدَّثَنَا أَبُو مَعْمَرٍ ، حَدَّثَنَا عَبْدُ الْوَارِثِ ، حَدَّثَنَا أَيُّوبُ ، عَنْ عِكْرِمَةَ ، عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُ ، قَالَ : " احْتَجَمَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَهُوَ صَائِمٌ " .
Narrated Ibn `Abbas: The Prophet was cupped while he was fasting.
Hadith Reference Sahih Bukhari / The Book of As-Saum (The Fasting). / Hadith: 1939
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 1940
حَدَّثَنَا آدَمُ بْنُ أَبِي إِيَاسٍ ، حَدَّثَنَا شُعْبَةُ ، قَالَ : سَمِعْتُ ثَابِتًا الْبُنَانِيَّ ، قَالَ : سُئِلَ أَنَسُ بْنُ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ ، " أَكُنْتُمْ تَكْرَهُونَ الْحِجَامَةَ لِلصَّائِمِ ؟ قَالَ : لَا ، إِلَّا مِنْ أَجْلِ الضَّعْفِ " ، وَزَادَ شَبَابَةُ ، حَدَّثَنَا شُعْبَةُ ، عَلَى عَهْدِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ .
Narrated Thabit Al-Bunani: Anas bin Malik was asked whether they disliked the cupping for a fasting person. He replied in the negative and said, "Only if it causes weakness."
Hadith Reference Sahih Bukhari / The Book of As-Saum (The Fasting). / Hadith: 1940
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة