Sahih al-Bukhari 1938
Sahih al-Bukhari · Book 30: Fasting · Cupping and vomiting in Saum (fast)
Narrated Ibn `Abbas:
حَدَّثَنَا مُعَلَّى بْنُ أَسَدٍ ، حَدَّثَنَا وُهَيْبٌ ، عَنْ أَيُّوبَ ، عَنْ عِكْرِمَةَ ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم احْتَجَمَ، وَهْوَ مُحْرِمٌ وَاحْتَجَمَ وَهْوَ صَائِمٌ.
The Prophet (ﷺ) was cupped while he was in the state of lhram, and also while he was observing a fast.