Sahih al-Bukhari, 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.
حَدَّثَنَا مُعَلَّى بْنُ أَسَدٍ، حَدَّثَنَا وُهَيْبٌ، عَنْ أَيُّوبَ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم احْتَجَمَ، وَهْوَ مُحْرِمٌ وَاحْتَجَمَ وَهْوَ صَائِمٌ.
also referenced under: Book 30, Hadith 45 (In-Book) & Volume 3, Book 31, Hadith 159 (USC-MSA)