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