The Prophet (ﷺ) was cupped while he was in a state of Ihram.

Sahih al-Bukhari Book 76, Hadith 17