From Sahih Bukhari (Hadith 5701):
Narrated Ibn `Abbas:The Prophet (ﷺ) was cupped on his head for an ailment he was suffering from while he was in a state of Ihram. at a water place called Lahl Jamal. Ibn `Abbas further said: Allah's Apostle was cupped on his head for unilateral headache while he was in a state of Ihram
Reference: Bukhari 5701