Allah's Messenger (ﷺ) was cupped while he was in a state of Ihram.

Sahih al-Bukhari Book 28 Hadith 15

Sahih al-Bukhari #1835

Penalty of Hunting while on Pilgrimage 28:15

Narrated Ibn `Abbas:

Allah's Messenger (ﷺ) was cupped while he was in a state of Ihram.

Chapter: Cupping for a Muhrim

Grade: Sahih