The Messenger of Allah ﷺ was cupped on his head while in the state of ihram.
حدثنا محمد بن جعفر حدثنا هشام عن عكرمة
احتجم رسول الله ﷺ احتجامة في رأسه وهو محرم
Its isnad is sahih, and it is a repetition of 2108. See also 2228.