It wasnarrated that Ibn 'Abbas said:
"The Messenger of Allah (ﷺ)said: "The Messenger of Allah (ﷺ) had cupping done when he wasfasting and in Ihram." (ID)
English reference (ID): Vol. 1, Book 7, Hadith 1682 (ID)
Arabic reference (ID): Book 7, Hadith 1752 (ID)