The Prophet ﷺ was cupped while in a state of ihram.
حدثنا أحمد بن حنبل حدثنا سفيان عن عمرو بن دينار عن عطاء وطاوس
أن النبي ﷺ احتجم وهو محرم
No references are available.
Bukhari transmitted it in the Book of the Recompense for Hunting, in the chapter on cupping for one in the state of ihram, hadith no. 1835, and Muslim transmitted it in the Book of Hajj, in the chapter on the permissibility of cupping for one in the state of ihram, hadith no. 1202, from the hadith of Sufyan bin Uyayna through the same chain, and it is also found in Musnad Ahmad, 1/221.