Sunan an-Nasa'i, Volume 3, Book 24, Hadith 2849 (DarusSalam)

It was narrated from Ibn Abbas that: The Prophet was treated by means of cupping when he was Ihram.

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

sunnah.com