The Messenger of Allah ﷺ was cupped on the top of his foot while in a state of ihram, due to a sprain he had suffered.
أخبرنا إسحق بن إبراهيم قال أنبأنا عبد الرزاق قال حدثنا معمر عن قتادة
أن رسول الله ﷺ احتجم وهو محرم على ظهر القدم من وثء كان به
[Its chain is daif] Abu Dawud narrated it in the chapter on Rituals of Hajj, section titled "One in the state of ihram undergoing cupping," Hadith 1837, from the hadith of Abdul-Razzaq, and it is in Kubra, Hadith 3832. Qatada narrated with "an" (indicating a possible break in transmission), and it has a daif corroborating narration in Dawud, Hadith 3863.