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