It was narrated from Ibn ‘Abbas that the Prophet (ﷺ) was treated with cupping when he was fasting and in the state of Ihram.
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.