The Prophet ﷺ was cupped while he was in the state of ihram. He later said, Tawus informed me that Ibn Abbas said, "The Prophet ﷺ was cupped while he was in the state of ihram."
أخبرنا محمد بن منصور عن سفيان قال أنبأنا عمرو بن دينار قال سمعت عطاء قال سمعت
احتجم النبي ﷺ وهو محرم ثم قال بعد أخبرني طاوس عن ابن عباس يقول احتجم النبي ﷺ وهو محرم
[Sahih] See the two preceding hadiths, and it is in Al-Kubra, no. 3830.