The Prophet ﷺ was cupped on his head while in the state of Ihram, due to an ailment he was suffering from, at a watering place called Lahy Jamal.
حدثني محمد بن بشار حدثنا ابن أبي عدي عن هشام عن عكرمة
احتجم النبي ﷺ في رأسه وهو محرم من وجع كان به بماء يقال له لحي جمل