Sahih al-Bukhari, Book 76, Hadith 17 (In-Book)

Narrated Ibn `Abbas: The Prophet was cupped while he was in a state of Ihram.

حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا سُفْيَانُ، عَنْ عَمْرٍو، عَنْ طَاوُسٍ، وَعَطَاءٍ، عَنِ ابْنِ عَبَّاسٍ، قَالَ احْتَجَمَ النَّبِيُّ صلى الله عليه وسلم وَهْوَ مُحْرِمٌ‏.‏

sunnah.com