It was narrated that Ibn ‘Abbas said:
“The Messenger of Allah (ﷺ) said: “The Messenger of Allah (ﷺ) had cupping done when he was fasting and in Ihram.”