It was narrated from Jabir that the Prophet (ﷺ) was treated with cupping when he was in the state of Ihram, because he did not feel well.
Sunan Ibn Majah Book 25, Hadith 201